Commit e049dbf7 authored by 张宇迪's avatar 张宇迪

update

parent 2b407325
...@@ -45,8 +45,11 @@ func server() error { ...@@ -45,8 +45,11 @@ func server() error {
//注册环境变量 //注册环境变量
func initEnv() { func initEnv() {
if len(os.Getenv("REDIS_CONNECTION")) > 0 { if len(os.Getenv("AWE_REDIS_CONNECTION")) > 0 {
*redisUrl = os.Getenv("REDIS_CONNECTION") *redisUrl = os.Getenv("AWE_REDIS_CONNECTION")
}
if len(os.Getenv("DB_URL")) > 0 {
*dbURL = os.Getenv("DB_URL")
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment