chore(deploy): Update production configuration for ASGI and new URL structure

- Switched production start script from Gunicorn to Daphne to support WebSockets.
- Updated VITE_API_URL in frontend production env to 'https://api.smoothschedule.com', removing the '/api' prefix to align with the backend URL refactor.
This commit is contained in:
poduck
2025-12-01 02:44:51 -05:00
parent fa3195b3b3
commit 2b4104a819
2 changed files with 3 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
# Production environment variables
# Use relative API URL - will use same origin as the page
VITE_API_URL=/api
VITE_API_URL=https://api.smoothschedule.com

View File

@@ -7,4 +7,5 @@ set -o nounset
python /app/manage.py collectstatic --noinput
exec gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app
# Start Daphne (ASGI) instead of Gunicorn (WSGI) to support WebSockets
exec daphne -b 0.0.0.0 -p 5000 config.asgi:application