I've now changed my app.yaml to this: ``` runtime: python37 handlers: - url: / static_dir: static/ static_files: static/index.html - url: /.* script: auto ``` Now when I do localhost:8080/query etc. it works. But it does _not_ serve any static pages at all (and they're all there).
On Monday, April 8, 2019 at 4:04:47 PM UTC+1, Mark Summerfield wrote: > > I've created a new app with an `app.yaml` that has a runtime of python37 > and that has some handlers, e.g., > ```yaml > runtime: python37 > > handlers: > - url: /query > script: main.app > > - url: / > static_files: static/index.html > upload: static/index.html > > - url: / > static_dir: static > > ``` > I've installed Python 37 using virtualenv as the docs describe, as well as > pip installing google-cloud-firestore and gunicorn. > > But when I try running my app locally to test it, I get this output: > ``` > (env) : gunicorn -b localhost:8080 --reload --log-level debug main:app > [2019-04-08 15:54:50 +0100] [6243] [DEBUG] Current configuration: > ... elided ... > [2019-04-08 15:54:50 +0100] [6243] [INFO] Starting gunicorn 19.9.0 > [2019-04-08 15:54:50 +0100] [6243] [DEBUG] Arbiter booted > [2019-04-08 15:54:50 +0100] [6243] [INFO] Listening at: > http://127.0.0.1:8080 (6243) > [2019-04-08 15:54:50 +0100] [6243] [INFO] Using worker: sync > [2019-04-08 15:54:50 +0100] [6246] [INFO] Booting worker with pid: 6246 > [2019-04-08 15:54:50 +0100] [6243] [DEBUG] 1 workers > [2019-04-08 15:54:54 +0100] [6246] [DEBUG] GET / > [2019-04-08 15:55:06 +0100] [6246] [DEBUG] GET /index.html > ``` > which looks like there's nothing wrong. > But in the browser when I visit localhost:8080 (or 127.0.0.1:8080) I get > a 404 file not found. > > I've used GAE for years with appcfg and that was easy to test locally, but > I can't figure this out. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a0a22600-81dc-43b6-961e-ec5da540b10b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
