diff --git a/hexo/Dockerfile b/hexo/Dockerfile index 5a473f3..f39d587 100644 --- a/hexo/Dockerfile +++ b/hexo/Dockerfile @@ -15,4 +15,4 @@ ADD bootstrap.sh /etc/bootstrap.sh WORKDIR /blog -ENTRYPOINT ["bash", "/etc/bootstrap.sh", "nothing"] +CMD ["bash", "/etc/bootstrap.sh", "nothing"] diff --git a/hexo/README.md b/hexo/README.md index 3ac86c6..eee88de 100644 --- a/hexo/README.md +++ b/hexo/README.md @@ -1,3 +1,9 @@ https://hexo.io/zh-cn/ http://theme-next.iissnan.com/ + +First Time: +docker service create --name hexo --publish 4000:4000 newnius/hexo + +Start Server: +docker service create --name hexo --publish 4000:4000 newnius/hexo hexo server diff --git a/hexo/bootstrap.sh b/hexo/bootstrap.sh index d509eb1..8f964b8 100755 --- a/hexo/bootstrap.sh +++ b/hexo/bootstrap.sh @@ -2,6 +2,7 @@ if [ "$1" == "server" ]; then # start hexo server + echo "starting hexo..." hexo server else # do nothing, just wait