Mercurial > piecrust2
comparison piecrust/serving/wrappers.py @ 1117:e8511fed42a3
serve: Indicate where to find the admin panel in the console output.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 25 Feb 2018 23:18:47 -0800 |
parents | 6f26e83dfced |
children | 587bccf72d75 |
comparison
equal
deleted
inserted
replaced
1116:40228511d600 | 1117:e8511fed42a3 |
---|---|
98 lambda *args: _shutdown_server_and_raise_sigint()) | 98 lambda *args: _shutdown_server_and_raise_sigint()) |
99 | 99 |
100 # Disable debugger PIN protection. | 100 # Disable debugger PIN protection. |
101 os.environ['WERKZEUG_DEBUG_PIN'] = 'off' | 101 os.environ['WERKZEUG_DEBUG_PIN'] = 'off' |
102 | 102 |
103 if is_cmdline_mode: | |
104 admin_url = 'http://%s:%s%s' % (host, port, '/pc-admin') | |
105 logger.info("The administrative panel is available at: %s" % | |
106 admin_url) | |
107 | |
103 try: | 108 try: |
104 run_simple(host, port, app, | 109 run_simple(host, port, app, |
105 threaded=True, | 110 threaded=True, |
106 use_debugger=use_debugger, | 111 use_debugger=use_debugger, |
107 use_reloader=use_reloader) | 112 use_reloader=use_reloader) |