简体   繁体   English

模块无法在开发服务器上的Google App Engine Python中启动

[英]Modules do not start in Google App Engine Python on Development Server

Problem: I am trying to create a simple app to try Modules in Google App Engine Python on Development Server(Development SDK 1.9.2). 问题:我正在尝试创建一个简单的应用,以尝试在开发服务器(开发SDK 1.9.2)上的Google App Engine Python中使用模块。 But I do not see the modules getting started at runtime(log messages specifying the ports on which they are started). 但是我看不到模块在运行时启动(日志消息指定了启动它们的端口)。

Logs when I start the app using the Launcher on the development server: 在开发服务器上使用启动器启动应用程序时记录:

2014-04-13 02:40:47 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=11080', '--admin_port=8003', u'C:\\gaurav\\coding\\python\\androidbackend1']"
INFO     2014-04-13 02:40:50,572 devappserver2.py:764] Skipping SDK update check.
INFO     2014-04-13 02:40:50,627 api_server.py:171] Starting API server at: http://localhost:59432
INFO     2014-04-13 02:40:50,631 dispatcher.py:182] Starting module "default" running at: http://localhost:11080
INFO     2014-04-13 02:40:50,634 admin_server.py:117] Starting admin server at: http://localhost:8003
INFO     2014-04-13 02:40:56,062 module.py:627] default: "GET / HTTP/1.1" 200 12

This Modules doc page at GAE for Python does not mention anything about development server. GAE for Python的“模块”文档页面未提及有关开发服务器的任何内容。 From another link, I figured out that on development server, all the modules are started at the beginning of app execution and they only differ in the port number of their URLs 从另一个链接,我发现在开发服务器上,所有模块都是在应用执行开始时启动的,它们的URL端口号只是不同

Context: I created a new app using the Google Launcher which generates a default "main.py" and "app.yaml". 上下文:我使用Google启动器创建了一个新应用,该应用会生成默认的“ main.py”和“ app.yaml”。 I then copied the "main.py" into a file named "modulem1.py", while retaining "main.py". 然后,我将“ main.py”复制到名为“ modulem1.py”的文件中,同时保留“ main.py”。 I copied "app.yaml" into a file named "modulem1.yaml", while retaining the "app.yaml" file. 我将“ app.yaml”复制到名为“ modulem1.yaml”的文件中,同时保留了“ app.yaml”文件。 I added the following line to "modulem1.yaml": 我在“ modulem1.yaml”中添加了以下行:

module: modulem1 

I want to use Google Endpoints API to interact between the web app and Android app. 我想使用Google Endpoints API在网络应用程序和Android应用程序之间进行交互。 So I need to use module for that and therefore I am trying a small web app with modules 所以我需要为此使用模块,因此我正在尝试一个带有模块的小型Web应用程序

I should be missing something obvious. 我应该缺少明显的东西。 Appreciate any help 感谢任何帮助

If you are using the Google App Engine Launcher, then you will need to provide the full path to your second yaml file modulem1.yaml 如果您使用的是Google App Engine启动器,则需要提供第二个Yaml文件modulem1.yaml的完整路径。

组态

Then once you start it, you can view the Logs and see that the modulem1 module has been launched at http://localhost:8080 and the default module has been launched at http://localhost:8081 然后,一旦启动它,您就可以查看日志,并看到modulem1模块已在http://localhost:8080启动, 默认模块已在http://localhost:8081

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM