app.yaml:
Код: Выделить всё
runtime: python39
entrypoint: gunicorn --worker-class eventlet -t 4 -w 1 --timeout 120 main:app -b :$PORT
manual_scaling:
instances: 1
network:
session_affinity: true
handlers:
# API handlers
- url: /api/.*
script: auto
secure: always
redirect_http_response_code: 301
# Static file handlers
- url: /(.*\.(html|css|js|png|jpg|jpeg|gif|ico|json|webp|svg))
static_files: frontend/dist/\1
upload: frontend/dist/(.*\.(html|css|js|png|jpg|jpeg|gif|ico|json|webp|svg))
secure: always
# Catch-all handler for other static files and single-page app support
- url: /.*
static_files: frontend/dist/index.html
upload: frontend/dist/index.html
secure: always
Подробнее здесь: https://stackoverflow.com/questions/786 ... quest-to-t