diff --git a/render.yaml b/render.yaml index c2f35ef..f622779 100644 --- a/render.yaml +++ b/render.yaml @@ -10,10 +10,11 @@ services: buildCommand: - apt-get update && apt-get install -y gcc libpq-dev python3-dev - pip install --upgrade pip + - pip install gunicorn - pip install -r requirements.txt - python manage.py collectstatic --noinput - python manage.py migrate --noinput - startCommand: "uvicorn egypt_metro.wsgi:application --host 0.0.0.0 --port 8000" + startCommand: "gunicorn egypt_metro.wsgi:application --bind 0.0.0.0:8000" envVars: - key: ENVIRONMENT # Environment for loading specific config value: prod @@ -27,6 +28,8 @@ services: name: persistent-data mountPath: /var/lib/egypt-metro sizeGB: 1 + logging: + - path: /var/log/egypt-metro.log secretFiles: - path: /etc/secrets/env.prod # Load sensitive secrets (e.g., SECRET_KEY, JWT_SECRET) healthCheckPath: "/health" # Optional, ensure health endpoint exists