Appengine: dispatch.yaml modules inactive on dev server

I am trying to execute a new function called "modules", but unfortunately they are not loading in my dev environment (osx + python).

I followed this document https://developers.google.com/appengine/docs/python/modules/routing#Python_Routing_in_the_development_server

Since I could not load my modules, I found this test application: https://github.com/GoogleCloudPlatform/appengine-modules-helloworld-python , but unfortunately I am experiencing the same problem.

The dispatch.yaml files use relative routes.

Here are the logs:

  • INFO 2013-08-30 00: 14: 20,702 sdk_update_checker.py:245] Check for updates for the SDK.
  • INFO 2013-08-30 00: 14: 21,067 sdk_update_checker.py: 73] The SDK has been updated.
  • INFO 2013-08-30 00: 14: 21,252 api_server.py:138] Starting the API server at: localhost: 58478
  • INFO 2013-08-30 00: 14: 21,255 dispatcher.py:164] The "default" starter module runs on: localhost: 8080
  • INFO 2013-08-30 00: 14: 21,259 admin_server.py:117] Starting the administrator server at: localhost: 8000
  • INFO 2013-08-30 00: 14: 58,871 module.pycla93] default: "GET / HTTP / 1.1" 200 36
  • INFO 2013-08-30 00: 15: 12,914 module.pycla93] default: "GET / mobile / HTTP / 1.1" 404 154

If / works, I get 404 for / mobile and / work. Based on the document, we should also see that 2-way mobile interfaces and static backends are running.

Let me know if you have an idea.

Thanks,

Olive

+4
source share
1 answer

Did you specify dispatch.yaml when starting the SDK?

dev_appserver.py dispatch.yaml app.yaml my_module_a.yaml my_module_b.yaml

You will see that they run the instance on different ports, like a backend. You should see in the console,

Starting dispatcher running at: http://localhost:8080 

(or any other port that you specified)

This can be found at the bottom of this page, although it is not obvious how you can run dev_appserver using dispatch.yaml

UPDATE . As Zachary notes in the comments, you no longer need to specify dispatch.yaml. Simply specify separate .yaml files for each module. Make sure that the paths to each yaml are correct with respect to the directory where you are working dev_appserver.py.

Update documents here

+8
source

Source: https://habr.com/ru/post/1499718/


All Articles