diff --git a/valence/cmd/api.py b/valence/cmd/api.py index ac295d0..6a2464c 100755 --- a/valence/cmd/api.py +++ b/valence/cmd/api.py @@ -44,7 +44,8 @@ class StandaloneApplication(gunicorn.app.base.BaseApplication): def main(): options = { - 'bind': '%s:%s' % (cfg.bind_host, cfg.bind_port) + 'bind': '%s:%s' % (cfg.bind_host, cfg.bind_port), + 'reload': cfg.debug } StandaloneApplication(application, options).run() LOG.info(("Valence Server on http://%(host)s:%(port)s"),