This commit is contained in:
parent
ff24b9d2e9
commit
80642aca05
@ -10,8 +10,8 @@ class Config:
|
|||||||
SYNC_TIMEOUT = os.environ.get("SYNC_TIMEOUT", None) # Wait infinity by default
|
SYNC_TIMEOUT = os.environ.get("SYNC_TIMEOUT", None) # Wait infinity by default
|
||||||
ROBOT_ADDRESS = os.environ.get("ROBOT_ADDRESS")
|
ROBOT_ADDRESS = os.environ.get("ROBOT_ADDRESS")
|
||||||
PROGRAM_URL = os.environ["PROGRAM_URL"]
|
PROGRAM_URL = os.environ["PROGRAM_URL"]
|
||||||
DRY_RUN = ('--dry-run' in sys.argv) or bool(os.environ.get("DRY_RUN", False))
|
DRY_RUN = ('--dry-run' in sys.argv) or bool(os.environ.get("DRY_RUN", "").upper() in ['YES', 'TRUE', '1'])
|
||||||
DEBUG = ('--debug' in sys.argv) or bool(os.environ.get("DEBUG", False))
|
DEBUG = ('--debug' in sys.argv) or bool(os.environ.get("DEBUG", "").upper() in ['YES', 'TRUE', '1'])
|
||||||
HTTP_ENABLE = ('--no-http' not in sys.argv) and \
|
HTTP_ENABLE = ('--no-http' not in sys.argv) and \
|
||||||
bool(os.environ.get("HTTP_ENABLE", "").upper() not in ['NO', 'FALSE', '0'])
|
bool(os.environ.get("HTTP_ENABLE", "").upper() not in ['NO', 'FALSE', '0'])
|
||||||
HTTP_PORT = int(os.environ.get("HTTP_PORT", 8080))
|
HTTP_PORT = int(os.environ.get("HTTP_PORT", 8080))
|
||||||
|
Loading…
Reference in New Issue
Block a user