You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
While bazel itself works perfectly with Flask, it seems currently it's impossible to deploy app like Python3 quickstart.
The first issue is requirements.txt is not symlinked into bazel-build/path/to/app/app.deploy.runfiles/project (where app.yaml is located). Probably, the issue could be overcome if flask is bundled into external dependency, but gunicorn (or other wsgi server) should be declared somehow.
I manually added symlink to /path/to/app/requirements.txt into bazel-build/path/to/app/app.deploy.runfiles/project and after bazel run //path/to/app:app.deploy it worked, gunicorn dependency was resolved.
The second issue is related to loading main module.
Tried several ways to specify entrypoint in app.yaml:
While bazel itself works perfectly with Flask, it seems currently it's impossible to deploy app like Python3 quickstart.
The first issue is
requirements.txt
is not symlinked intobazel-build/path/to/app/app.deploy.runfiles/project
(whereapp.yaml
is located). Probably, the issue could be overcome ifflask
is bundled into external dependency, butgunicorn
(or other wsgi server) should be declared somehow.I manually added symlink to
/path/to/app/requirements.txt
intobazel-build/path/to/app/app.deploy.runfiles/project
and afterbazel run //path/to/app:app.deploy
it worked,gunicorn
dependency was resolved.The second issue is related to loading
main
module.Tried several ways to specify
entrypoint
inapp.yaml
:This caused the following stacktrace:
And
produced:
Any plans on supporting flask in python appengine standard environment?
Thanks.
The text was updated successfully, but these errors were encountered: