关于server后端代码中的config读取方式的更改问题
99Kies opened this issue · 2 comments
99Kies commented
现在修改了config的读取方式,将config全部存放在/hackathon/config.py中 并通过修改环境变量来修改config内容。
现在需要将 util中的safe_get_config 方法弃用。
juniwang commented
本地怎么办的?
99Kies commented
本地怎么办的?
本地直接去修改config.py 内的默认值就行了
DEMO = os.getenv("DEMO", "change this")
也可以设置环境变量去改
export DEMO="change this" # linux / mac
set DEMO="change this" # win