Set SERVICES_DOMAIN and SERVICES_URL correctly for local development
This commit is contained in:
Родитель
f43c7cb803
Коммит
2e85926e59
|
@ -5,6 +5,7 @@ won't be tracked in git).
|
|||
|
||||
"""
|
||||
import os
|
||||
import re
|
||||
|
||||
from olympia.lib.settings_base import * # noqa
|
||||
|
||||
|
@ -70,8 +71,8 @@ ADDONS_LINTER_BIN = os.getenv(
|
|||
ES_DEFAULT_NUM_REPLICAS = 0
|
||||
|
||||
SITE_URL = os.environ.get('OLYMPIA_SITE_URL') or 'http://localhost:8000'
|
||||
SERVICES_DOMAIN = 'localhost:8000'
|
||||
SERVICES_URL = 'http://%s' % SERVICES_DOMAIN
|
||||
SERVICES_DOMAIN = re.sub(r'^https?:\/\/', '', SITE_URL)
|
||||
SERVICES_URL = SITE_URL
|
||||
|
||||
ADDON_COLLECTOR_ID = 1
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче