Files
enterprise_digital-platform/portal/run.py
T

9 lines
264 B
Python

import os
from app import create_app
app = create_app(os.environ.get('FLASK_ENV', 'production'))
if __name__ == '__main__':
port = int(os.environ.get('PORT', 5001))
app.run(host='0.0.0.0', port=port, debug=(os.environ.get('FLASK_ENV') == 'development'))