Commit 29b4de1d authored by Samuel GAIST's avatar Samuel GAIST
Browse files

Merge branch 'port-config' into 'master'

server-side port config

Closes #188

See merge request !41
parents 16df11ec bb74d3a9
Pipeline #26154 passed with stages
in 70 minutes and 18 seconds
......@@ -64,10 +64,13 @@ def editor(ctx):
@click.option('--cache', '-c', help='Overrides the cache prefix. If not set, use the value from your RC file, otherwise defaults to `<prefix>/%(cache)s\'',
@click.option('--port', help='Overrides the port that the beat.editor server will listen on. By default will listen on port 5000.',
def serve(ctx, dev, debug, prefix, cache):
def serve(ctx, dev, debug, prefix, cache, port):
'''Run Flask server
To run the development server add option --dev
......@@ -127,6 +130,6 @@ def serve(ctx, dev, debug, prefix, cache):
if not dev:
import webbrowser'http://localhost:5000')'http://localhost:{}'.format(port))
return, port=port)
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