mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 16:41:55 +00:00
update hexo
This commit is contained in:
parent
d61dd3985e
commit
1af05679f1
@ -9,6 +9,10 @@ if ! [ "$(ls -A ./ )" ]; then
|
|||||||
hexo init && npm install
|
hexo init && npm install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# install modules if not
|
||||||
|
[ -d "node_modules" ] || npm install --from-lockfile
|
||||||
|
|
||||||
# run hexo as production / developemnt mode
|
# run hexo as production / developemnt mode
|
||||||
if [[ $1 == "production" ]]; then
|
if [[ $1 == "production" ]]; then
|
||||||
hexo server -s
|
hexo server -s
|
||||||
|
Loading…
Reference in New Issue
Block a user