Skip to content

Commit

Permalink
Merge pull request #2 from khs1994-docker/dev
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
khs1994 authored Nov 8, 2017
2 parents 105a70a + b6a6273 commit b5d4ee0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@ echo $PWD
main(){
./node_modules/hexo/bin/hexo version
./node_modules/hexo/bin/hexo g
cp -a public ../hexo-src/
case $1 in
deploy )
./node_modules/hexo/bin/hexo d
;;
server )
./node_modules/hexo/bin/hexo server
exit 0
;;
esac
cp -a public ../hexo-src/
esac
echo $START
date "+%F %T"
}

main
main $1 $2 $3

0 comments on commit b5d4ee0

Please sign in to comment.