增加启动配置

pull/244/head
Minho 2018-03-25 16:39:09 +08:00
parent 6a49b8a42f
commit eaf11b3f0d
1 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,10 @@ if [ ! -z $CACHE_REDIS_PASSWROD ]; then
sed -i "s#cache_redis_password=.*#cache_redis_password=$CACHE_REDIS_PASSWROD#g" conf/app.conf
fi
if [ ! -z $BASEURL ]; then
sed -i "s#baseurl=.*#baseurl=$BASEURL#g" conf/app.conf
fi
sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf
/go/src/github.com/lifei6671/mindoc/mindoc_linux_amd64 install