13 lines
389 B
Python
13 lines
389 B
Python
import os
|
|
from app import create_app
|
|
|
|
# Set the environment variable for database URL if needed
|
|
# os.environ['DATABASE_URL'] = 'your_production_database_url'
|
|
|
|
# Create a production application
|
|
app = create_app("production")
|
|
|
|
if __name__ == "__main__":
|
|
# This is only used for development
|
|
# In production, a WSGI server would import this file
|
|
app.run(host="0.0.0.0", port=5000)
|