From 4cf18af6eb394ccd87ba4d5c978e59e4e82c46ba Mon Sep 17 00:00:00 2001 From: lifei6671 Date: Mon, 1 May 2017 14:53:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/app.conf | 7 ++----- conf/app.conf.example | 6 ++---- start.sh | 3 +++ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/conf/app.conf b/conf/app.conf index 284d56ce..718773cb 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -1,8 +1,8 @@ -appname = smartwebhook +appname = godoc httpport = 8181 runmode = dev sessionon = true -sessionname = smart_webhook_id +sessionname = mindoc_id copyrequestbody = true #默认Session生成Key的秘钥 @@ -11,9 +11,6 @@ beegoserversessionkey=123456 sessionprovider=file sessionproviderconfig=./logs -#生成回调地址时完整的域名 -base_url = https://hook.iminho.me - #时区设置 timezone = Asia/Shanghai diff --git a/conf/app.conf.example b/conf/app.conf.example index 51cb3671..0cbd5ea5 100644 --- a/conf/app.conf.example +++ b/conf/app.conf.example @@ -1,9 +1,9 @@ -appname = smartwebhook +appname = godoc # httpaddr = 127.0.0.1 httpport = 8181 runmode = dev sessionon = true -sessionname = smart_webhook_id +sessionname = mindoc_id copyrequestbody = true #默认Session生成Key的秘钥 @@ -12,8 +12,6 @@ beegoserversessionkey=123456 sessionprovider=file sessionproviderconfig=./logs -#生成回调地址时完整的域名 -base_url = https://hook.iminho.me #时区设置 timezone = Asia/Shanghai diff --git a/start.sh b/start.sh index 82dec96d..992b4beb 100644 --- a/start.sh +++ b/start.sh @@ -36,5 +36,8 @@ if [ ! -z $httpport ] ; then sed -i 's/^httpport.*/httpport='$httpport'/g' conf/app.conf fi +if [ ! -f "logs/log.log" ]; then + echo "" >> logs/log.log +fi ./$goFile \ No newline at end of file