""" Development server. This server is intended for development only: it enables debugging tools, and use a different port (5000) so it can more easily interface with other applications. Launching the server is relatively easy:: $ make dev """ import os from application import app if __name__ == '__main__': port = int(os.getenv('PORT', 5000)) # When running the Flask application in development mode (debug=True), Flask will # display an interactive debugger in the browser for uncaught exceptions, which # overrides custom error handlers like @app.errorhandler(500). To test how uncaught # exceptions are handled by custom error handlers in a production-like environment, # set debug=False. app.run(host='0.0.0.0', debug=True, port=port)