Clean up legacy env vars, print a warning log if running web_server directly
This commit is contained in:
parent
8ff89c63a3
commit
cb9a4b23b6
3 changed files with 1 additions and 3 deletions
|
|
@ -81,8 +81,6 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV PYTHONPATH=/app
|
ENV PYTHONPATH=/app
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
ENV FLASK_APP=web_server.py
|
|
||||||
ENV FLASK_ENV=production
|
|
||||||
ENV DATABASE_PATH=/app/data/music_library.db
|
ENV DATABASE_PATH=/app/data/music_library.db
|
||||||
ENV PUID=1000
|
ENV PUID=1000
|
||||||
ENV PGID=1000
|
ENV PGID=1000
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ services:
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- UMASK=022
|
- UMASK=022
|
||||||
# Web server configuration
|
# Web server configuration
|
||||||
- FLASK_ENV=production
|
|
||||||
- PYTHONPATH=/app
|
- PYTHONPATH=/app
|
||||||
# Optional: Configure through environment variables
|
# Optional: Configure through environment variables
|
||||||
- SOULSYNC_CONFIG_PATH=/app/config/config.json
|
- SOULSYNC_CONFIG_PATH=/app/config/config.json
|
||||||
|
|
|
||||||
|
|
@ -54308,5 +54308,6 @@ def start_runtime_services():
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print("Starting SoulSync Web UI Server...")
|
print("Starting SoulSync Web UI Server...")
|
||||||
print("Open your browser and navigate to http://127.0.0.1:8008")
|
print("Open your browser and navigate to http://127.0.0.1:8008")
|
||||||
|
print("Note: direct `python web_server.py` startup is a legacy fallback; use Gunicorn for production.")
|
||||||
start_runtime_services()
|
start_runtime_services()
|
||||||
socketio.run(app, host='0.0.0.0', port=8008, debug=False, allow_unsafe_werkzeug=True)
|
socketio.run(app, host='0.0.0.0', port=8008, debug=False, allow_unsafe_werkzeug=True)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue