Unverified Commit 8ce433cf authored by Peter Stanko's avatar Peter Stanko
Browse files

Parametrized default worker domain

parent 2253b11c
......@@ -176,7 +176,8 @@ def init_dev_data(app: Flask, db: SQLAlchemy):
db.session.add_all([review])
# components
executor = factory.create_worker(name='executor', url='http://localhost:8080')
worker_domain = app.config.get('PORTAL_DATA_WORKER_DOMAIN', 'localhost')
executor = factory.create_worker(name='executor', url=f'http://{worker_domain}:8080')
executor.secrets.append(Secret('executor_secret', 'executor_secret'))
executor.roles.append(tc1_worker)
executor.roles.append(tc2_worker)
......
......@@ -37,6 +37,7 @@ class Config(object):
f"sqlite:///{paths.ROOT_DIR}/devel.db")
EMAIL_BACKEND = 'tests.utils.email_backend.EmailBackend'
PORTAL_LOG_CONFIG = False
PORTAL_DATA_WORKER_DOMAIN = os.getenv('PORTAL_DATA_WORKER_DOMAIN', 'localhost')
class DevelopmentConfig(Config):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment