run.py 328 B

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