run.py 291 B

123456789101112
  1. from models import create_app
  2. import logging
  3. logger = logging.getLogger(__name__)
  4. app = create_app()
  5. if __name__ == '__main__':
  6. logging.basicConfig(
  7. level=logging.INFO,
  8. format='%(asctime)s %(levelname)s %(message)s')
  9. app.run(host='0.0.0.0', debug=True, port=5000)