Live was set to debug mode

This commit is contained in:
Martyn Inglis
2016-01-07 16:24:10 +00:00
parent cd1af56548
commit 35fe1ae5a3
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ admin_api_client = AdminAPIClient()
def create_app(config_name):
application = Flask(__name__)
application.config['NOTIFY_API_ENVIRONMENT'] = config_name
application.config['NOTIFY_ADMIN_ENVIRONMENT'] = config_name
application.config.from_object(configs[config_name])
if 'FLASK_CONFIG' in os.environ:
application.config.from_envvar('FLASK_CONFIG')

View File

@@ -8,7 +8,7 @@ class Config(object):
manifest = True
NOTIFY_LOG_LEVEL = 'DEBUG'
NOTIFY_APP_NAME = 'api'
NOTIFY_APP_NAME = 'admin'
NOTIFY_LOG_PATH = '/var/log/notify/application.log'
SQLALCHEMY_COMMIT_ON_TEARDOWN = False
@@ -42,7 +42,7 @@ class Test(Config):
class Live(Config):
DEBUG = True
DEBUG = False
HTTP_PROTOCOL = 'https'
configs = {