update hexo

This commit is contained in:
Newnius 2018-08-22 20:44:47 +08:00
parent d61dd3985e
commit 1af05679f1

View File

@ -9,9 +9,13 @@ if ! [ "$(ls -A ./ )" ]; then
hexo init && npm install
fi
# install modules if not
[ -d "node_modules" ] || npm install --from-lockfile
# run hexo as production / developemnt mode
if [[ $1 == "production" ]]; then
hexo server -s
hexo server -s
else
hexo server
hexo server
fi