Make config production ready
This commit is contained in:
parent
a02a58a8db
commit
39acebb3a6
@ -1,9 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from dotenv import load_dotenv
|
||||||
if not os.getenv('DATA'):
|
load_dotenv('../.env')
|
||||||
from dotenv import load_dotenv
|
|
||||||
load_dotenv('../.env')
|
|
||||||
|
|
||||||
class Config(object):
|
class Config(object):
|
||||||
APP_HOST = '0.0.0.0'
|
APP_HOST = '0.0.0.0'
|
||||||
|
Loading…
Reference in New Issue
Block a user