Browse Source

增加启动配置

Minho 7 năm trước cách đây
mục cha
commit
eaf11b3f0d
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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