File size: 715 Bytes
5aad2f7 fc5e1f9 e772992 dcfc9ea 5aad2f7 dddd1c4 5aad2f7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | services:
- type: web
name: sdu-shift
runtime: python
buildCommand: pip install -r requirements.txt
# SimpleCache(プロセスローカル)のキャッシュ無効化を全ワーカーに伝播させるため、
# workers=1 + gthread のマルチスレッド構成にする(#37)
startCommand: gunicorn "web_app:create_app()" --bind 0.0.0.0:$PORT --workers 1 --worker-class gthread --threads 4 --timeout 120 --max-requests 500 --max-requests-jitter 50 --access-logfile - --error-logfile -
envVars:
- key: SECRET_KEY
generateValue: true
- key: DATABASE_URL
sync: false
- key: DISABLE_STATEMENT_TIMEOUT
value: "true"
autoDeploy: true
|