作者 yangfu

环境变量修改

... ... @@ -40,5 +40,8 @@ func init() {
CUSTOMER_ACCOUNT = tmpAccounts
}
}
if os.Getenv("SERVICE_ENV") != "" {
SERVICE_ENV = os.Getenv("SERVICE_ENV")
}
CACHE_PREFIX = fmt.Sprintf("%v-%v", SERVICE_NAME, SERVICE_ENV)
}
... ...
package constant
import "os"
import (
"os"
)
var POSTGRESQL_DB_NAME = "terms"
var POSTGRESQL_USER = "postgres"
... ...