start_workers checks local_settings file
This commit is contained in:
parent
b50bab98d1
commit
86ac2657ad
@ -12,6 +12,13 @@ if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'stacktach')):
|
|||||||
|
|
||||||
import worker
|
import worker
|
||||||
|
|
||||||
|
config_filename = os.environ.get('STACKTACH_DEPLOYMENTS_FILE',
|
||||||
|
'stacktach_worker_config.json')
|
||||||
|
try:
|
||||||
|
from local_settings import *
|
||||||
|
config_filename = STACKTACH_DEPLOYMENTS_FILE
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
processes = []
|
processes = []
|
||||||
|
|
||||||
@ -28,7 +35,6 @@ def kill_time(signal, frame):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
config_filename = os.environ['STACKTACH_DEPLOYMENTS_FILE']
|
|
||||||
config = None
|
config = None
|
||||||
with open(config_filename, "r") as f:
|
with open(config_filename, "r") as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user