Changed config for new Flask
This commit is contained in:
@@ -138,10 +138,12 @@ def runCouchPotato(options, base_path, args):
|
|||||||
reloader = debug and not options.daemonize
|
reloader = debug and not options.daemonize
|
||||||
|
|
||||||
# Basic config
|
# 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
|
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
|
# Static path
|
||||||
web.add_url_rule(url_base + '/static/<path:filename>',
|
web.add_url_rule(url_base + '/static/<path:filename>',
|
||||||
@@ -153,4 +155,4 @@ def runCouchPotato(options, base_path, args):
|
|||||||
app.register_blueprint(api, url_prefix = '%s/%s/' % (url_base, api_key))
|
app.register_blueprint(api, url_prefix = '%s/%s/' % (url_base, api_key))
|
||||||
|
|
||||||
# Go go go!
|
# Go go go!
|
||||||
app.run(use_reloader = reloader)
|
app.run(**config)
|
||||||
|
|||||||
Reference in New Issue
Block a user