[英]GAE: How do I run dev_appserver.py?
我在使用Google App Engine配置新的Windows计算机时遇到问题。 我上次在旧计算机上使用它的时间是一年多以前,我不记得是否使用过相同的工具。
这是我遵循的步骤:
conda create --name gae-firebase python=2
setx CLOUDSDK_PYTHON C:\\Anaconda3\\envs\\gae-firebase\\python.exe
activate gae-firebase
cd \\workspace\\google
git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
cd python-docs-samples\\appengine\\standard\\firebase\\firenotes
pip install -r backend\\requirements.txt -t lib
dev_appserver.py frontend/app.yaml backend/app.yaml
然后dev_appserver.py frontend/app.yaml backend/app.yaml
是”以安装app-engine-python组件。 最后,它说dev_appserver.py: error: too few arguments
脚本似乎在参数列表中看不到yaml文件名。 我尝试卸载并重新安装了很多次,以更改项目的顺序或更改其他问题,这些问题是由类似问题的答案启发了几个小时而来的,但这是我最接近成功的一次。
我究竟做错了什么?
在最新安装的应用程序引擎SKD中,有一个README文件说:
RUNNING THE SDK
=========================
You can run the SDK with the following command:
dev_appserver.py [options] <application root>
Application root must be the path to the application to run in this server.
Must contain a valid app.yaml or app.yml file.
据我所知,您没有提供<application root>
。 例如,我可以通过以下方式运行演示应用程序:
python dev_appserver.py demos\python\guestbook
选择任何.py文件,按alt + enter( 右键单击-> properties ),选择change,然后选择python.exe(应用程序)从安装目录中打开.py文件并运行文件...; -p
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.