I'm trying yo test the new "modules" feature but unfortunately they don't seem to load in my dev environment (osx + python).
I followed this doc https://developers.google.com/appengine/docs/python/modules/routing#Python_Routing_in_the_development_server
Since i couldn't get my modules to load, I found this test app: https://github.com/GoogleCloudPlatform/appengine-modules-helloworld-python but unfortunately I'm experiencing the same problem.
The dispatch.yaml files uses relative routes.
Here are the logs:
if / works, I get a 404 for /mobile and /work. Based on the doc we should also see the 2 modules mobile-frontend and static-backend started.
Let me know if you have an idea.
Thanks,
Oliv
Have you specified the dispatch.yaml when you start the SDK?
dev_appserver.py dispatch.yaml app.yaml my_module_a.yaml my_module_b.yaml
You will see them start an instance on different ports, just like a backend. You should see in the console,
Starting dispatcher running at: http://localhost:8080
(or whatever port you specified)
This can be found at the bottom of this page, although isn't obvious how you get dev_appserver to run with a dispatch.yaml
UPDATE As Zachary points out in the comments you don't need to mention dispatch.yaml any longer. Just specifying separate .yaml files for each module is enough. Make sure that if the paths to each yaml is correct in relation to the directory you are running dev_appserver.py in.
Update docs are here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With