Spaces:
Sleeping
Sleeping
Seth McKnight
Implement App Factory pattern with lazy loading and improve test isolation (#62)
2eb9a5f
| import os | |
| from src.app_factory import create_app | |
| # Create the Flask app using the factory | |
| app = create_app() | |
| if __name__ == "__main__": | |
| port = int(os.environ.get("PORT", 8080)) | |
| app.run(debug=True, host="0.0.0.0", port=port) | |