portsettings für docker + cli noch angepasst. jetzt ist .env führend
This commit is contained in:
1 parent
a54f26f808
commit
0739de4b44
2 files changed
+2
-2
No files matched your search
@@ -229,4 +229,4 @@ app = create_app()
|
||||
if __name__ == '__main__':
|
||||
# This allows running the app directly with python app.py
|
||||
# In production, use gunicorn or other WSGI servers
|
||||
app.run(host='0.0.0.0', port=5000, debug=app.config['DEBUG'])
|
||||
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=app.config['DEBUG'])
|
||||
+1
-1
@@ -5,7 +5,7 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
container_name: formeleon-app
|
||||
ports:
|
||||
- "5000:5000"
|
||||
- "${PORT:-5000}:5000"
|
||||
volumes:
|
||||
# Mount entire project directory for hot-reload in development
|
||||
# Exclude the virtual environment if it exists locally to prevent conflicts with container venv
|
||||
|
||||
Reference in new issue
Block a user