comparison foodtruck/main.py @ 602:c6bc0ef03f82

admin: Better UI for publishing websites. * Support multiple publish targets. * Dedicated UI for publishing. * Some UI polish.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 27 Jan 2016 18:02:25 -0800
parents d7baac1d01e6
children 200c7063affa
comparison
equal deleted inserted replaced
601:effbc78b5528 602:c6bc0ef03f82
14 app.run(debug=debug, threaded=True) 14 app.run(debug=debug, threaded=True)
15 except SystemExit: 15 except SystemExit:
16 # This is needed for Werkzeug's code reloader to be able to correctly 16 # This is needed for Werkzeug's code reloader to be able to correctly
17 # shutdown the child process in order to restart it (otherwise, SSE 17 # shutdown the child process in order to restart it (otherwise, SSE
18 # generators will keep it alive). 18 # generators will keep it alive).
19 from .views import baking 19 from . import pubutil
20 logger.debug("Shutting down SSE generators from main...") 20 logger.debug("Shutting down SSE generators from main...")
21 baking.server_shutdown = True 21 pubutil.server_shutdown = True
22 raise 22 raise
23 23