Refactor project structure

This commit is contained in:
Kristóf Tóth
2018-01-31 15:50:52 +01:00
parent 23cc381495
commit 0d41b4c8e9
20 changed files with 27 additions and 28 deletions

View File

@ -0,0 +1 @@
from .envvars import *

14
lib/tfw/config/envvars.py Normal file
View File

@ -0,0 +1,14 @@
import os
PUBLISHER_PORT = os.getenv('PUBLISHER_PORT', 7654)
RECEIVER_PORT = os.getenv('RECEIVER_PORT', 8765)
WEB_PORT = os.getenv('TFW_WEB_PORT', 4242)
SUPERVISOR_HTTP_PORT = os.getenv('TFW_SUPERVISOR_PORT', 9001)
LOGIN_APP_PORT = os.getenv('TFW_LOGIN_APP_PORT', 6666)
TERMINADO_PORT = os.getenv('TFW_TERMINADO_PORT', 9999)
TERMINADO_WD = os.getenv('TFW_TERMINADO_WD')
SUPERVISOR_HTTP_URI = 'http://localhost:{}'.format(SUPERVISOR_HTTP_PORT)
LOGIN_APP_DIR = os.getenv('TFW_LOGIN_APP_DIR')
TERMINADO_DIR = os.getenv('TFW_TERMINADO_DIR')

3
lib/tfw/config/logs.py Normal file
View File

@ -0,0 +1,3 @@
import logging
logging.basicConfig(level=logging.CRITICAL)