From 6430014c56c8185fbe7488eb52cfc44f2a8edc91 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 4 Sep 2011 23:49:08 +0200 Subject: [PATCH] Changed config for new Flask --- couchpotato/runner.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index a422f32c..b30b2b9c 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -138,10 +138,12 @@ def runCouchPotato(options, base_path, args): reloader = debug and not options.daemonize # Basic config - app.host = Env.setting('host', default = '0.0.0.0') - app.port = Env.setting('port', default = 5000) - app.debug = debug app.secret_key = api_key + config = { + 'use_reloader': reloader, + 'host': Env.setting('host', default = '0.0.0.0'), + 'port': Env.setting('port', default = 5000) + } # Static path web.add_url_rule(url_base + '/static/', @@ -153,4 +155,4 @@ def runCouchPotato(options, base_path, args): app.register_blueprint(api, url_prefix = '%s/%s/' % (url_base, api_key)) # Go go go! - app.run(use_reloader = reloader) + app.run(**config)