hexo
This commit is contained in:
parent
b11c643514
commit
91b09d16ad
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user