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)