Changed config for new Flask

This commit is contained in:
Ruud
2011-09-04 23:49:08 +02:00
parent 4e21f783c8
commit 6430014c56
+6 -4
View File
@@ -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/<path:filename>',
@@ -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)