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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user