""" 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:: $ pyvenv env $ source env/bin/activate $ pip install -r requirements.txt $ pip install -r requirements-dev.txt $ python dev.py """ import argparse from application import app if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument( '--port', dest='port', default=5000, help='Optional port to launch the service.') args = parser.parse_args() app.run(host='0.0.0.0', debug=True, port=int(args.port))