From 91b09d16ade2fe25063c78c7025295bc9859ac39 Mon Sep 17 00:00:00 2001 From: yangyu Date: Sat, 21 Jul 2018 09:15:45 +0800 Subject: [PATCH] hexo --- hexo/Dockerfile | 4 +++- hexo/start.sh | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/hexo/Dockerfile b/hexo/Dockerfile index d443ebe..a7fd2dd 100644 --- a/hexo/Dockerfile +++ b/hexo/Dockerfile @@ -16,7 +16,9 @@ RUN cd $BASH_PATH && \ git checkout $NVM_VERSION && \ source $BASH_PATH/.nvm/nvm.sh && \ nvm install $NODE_VERSION && \ - npm install -g hexo-cli + npm install -g hexo-cli && \ + npm npm install hexo-renderer-jade@0.3.0 --save && \ + npm install hexo-renderer-stylus --save RUN mkdir /logs diff --git a/hexo/start.sh b/hexo/start.sh index dbdb872..e48150d 100644 --- a/hexo/start.sh +++ b/hexo/start.sh @@ -1,10 +1,14 @@ #!/bin/bash if [ ! -e /hexo ]; then - if [ -n "$REPOSITORY" ]; then cd /; git clone -b $BRANCH $REPOSITORY hexo; - fi +fi + +if [ -e /hexo ]; then + rm -rf /hexo; + cd /; + git clone -b $BRANCH $REPOSITORY hexo; fi