Commit 405e330c authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[scripts] patch server cli to open browser when not in devel mode

Closes #151
parent 732581ec
Pipeline #23424 passed with stages
in 42 minutes and 18 seconds
......@@ -125,7 +125,7 @@ def serve(ctx, dev, debug, prefix, cache):
api.add_resource(gen_endpoint(entity), '/' + entity,
resource_class_kwargs={'config': config})
if dev:
if not dev:
import webbrowser
webbrowser.open('http://localhost:5000')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment