update hexo

This commit is contained in:
Newnius 2018-01-15 15:26:41 +08:00
parent b1af49988d
commit 57fd80c461
2 changed files with 4 additions and 2 deletions

View File

@ -8,4 +8,6 @@ RUN npm install hexo-cli -g
ADD bootstrap.sh /etc/bootstrap.sh ADD bootstrap.sh /etc/bootstrap.sh
WORKDIR /blog
CMD ["/etc/bootstrap.sh", "development"] CMD ["/etc/bootstrap.sh", "development"]

View File

@ -5,8 +5,8 @@ git config --global user.email $GIT_EMAIL
git config --global user.name $GIT_NAME git config --global user.name $GIT_NAME
# init hexo if dir is empty # init hexo if dir is empty
if ! [ "$(ls -A blog)" ]; then if ! [ "$(ls -A ./ )" ]; then
hexo init blog && npm install blog hexo init && npm install
fi fi
# run hexo as production / developemnt mode # run hexo as production / developemnt mode