Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any ideas on how to deploy on Google App Engine? #43

Open
gianpaj opened this issue May 11, 2021 · 0 comments
Open

Any ideas on how to deploy on Google App Engine? #43

gianpaj opened this issue May 11, 2021 · 0 comments

Comments

@gianpaj
Copy link

gianpaj commented May 11, 2021

I'm getting this error:

Failed to find attribute 'app' in 'main'.

This is the app.yaml I was using:

runtime: python37

automatic_scaling:
  min_idle_instances: 1

inbound_services:
  - warmup


handlers:

  # This configures Google App Engine to serve the files in the app's static
  # directory.
- url: /static
  static_dir: static

  # This handler routes all requests not caught above to your main app. It is
  # required when static routes are defined, but can be omitted (along with
  # the entire handlers section) when there are no static files defined.
- url: /.*
  script: auto
  secure: always

I tried specifying the entrypoint on the yaml file

entrypoint: gunicorn -b :$PORT wsgi:app

but it didn't work

https://cloud.google.com/appengine/docs/standard/python3/runtime#application_startup

I'm testing locally with:

dev_appserver.py

https://cloud.google.com/appengine/docs/standard/python3/testing-and-deploying-your-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant