mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 05:30:21 -04:00
Live was set to debug mode
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user