From 234ed1df800f933efb8ae2f1ad62586564edeec5 Mon Sep 17 00:00:00 2001 From: newnius Date: Wed, 30 Nov 2016 20:47:38 +0800 Subject: [PATCH] update --- hexo/Dockerfile | 2 +- hexo/README.md | 6 ++++++ hexo/bootstrap.sh | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) 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