浏览代码

增加启动配置

Minho 7 年之前
父节点
当前提交
eaf11b3f0d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      start.sh

+ 4 - 0
start.sh

@@ -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