502 Bad Gateway
I see 502 Bad Gateway errors when accessing my app.
.platform.app.yamlname: "ll_project"type: "python:3.8"relationships: database: "db:postgresql"web: upstream: socket_family: unix commands: start: "gunicorn -w 4 -b unix:$SOCKET ll_project.wsgi:application" locations: "/": passthru: true "/static": root: "static" expires: 1h allow: truedisk: 512mounts: "logs": source: local source_path: logshooks: build: | pip install --upgrade pip pip install -r requirements.txt pip install -r requirements_remote.txt mkdir logs python manage.py collectstatic rm -rf logs deploy: | python manage.py migrate
routes.yaml"https://{default}/": type: upstream upstream: "ll_project:http""https://www.{default}/": type: redirect to: "https://{default}/"
services.yamldb:
type: postgresql:12
disk: 1024
Comments
Hi, it appears that you do not have a “wsgi.py” file in a folder called “ll_project”.
Please try using this as a start command instead:
Oh, yes, you are right. I appreciate your support very much.
Thank you for sparing your precious time answering my questions.
Please sign in to leave a comment.