Mercurial > piecrust2
diff foodtruck/main.py @ 619:200c7063affa
admin: Change the default admin server port to 8090, add `--port` option.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 06 Feb 2016 21:47:24 -0800 |
parents | c6bc0ef03f82 |
children | 3885421c29a3 |
line wrap: on
line diff
--- a/foodtruck/main.py Sat Feb 06 21:34:23 2016 -0800 +++ b/foodtruck/main.py Sat Feb 06 21:47:24 2016 -0800 @@ -4,14 +4,14 @@ logger = logging.getLogger(__name__) -def run_foodtruck(debug=False): +def run_foodtruck(host=None, port=None, debug=False): if debug: import foodtruck.settings foodtruck.settings.DEBUG = debug from .web import app try: - app.run(debug=debug, threaded=True) + app.run(host=host, port=port, debug=debug, threaded=True) except SystemExit: # This is needed for Werkzeug's code reloader to be able to correctly # shutdown the child process in order to restart it (otherwise, SSE