From 1af05679f150a8b7391e8cbdd98cf0cd452e8a5a Mon Sep 17 00:00:00 2001 From: Newnius Date: Wed, 22 Aug 2018 20:44:47 +0800 Subject: [PATCH] update hexo --- hexo/bootstrap.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hexo/bootstrap.sh b/hexo/bootstrap.sh index dc49257..26417ff 100755 --- a/hexo/bootstrap.sh +++ b/hexo/bootstrap.sh @@ -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