Spaces:
Sleeping
Sleeping
File size: 307 Bytes
ab95ad6 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import os
from app import create_app
app = create_app()
if __name__ == "__main__":
if os.getenv("FLASK_ENV") == "production":
from gunicorn.app.wsgiapp import WSGIApplication
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
else:
app.run(host='0.0.0.0', port=3100)
|