简体   繁体   English

在Google App Engine上部署应用程序

[英]Deploy the app on Google App Engine

I am following this tutorial to see how Google App Engine (Java) works. 我正在按照本教程查看Google App Engine(Java)的工作方式。 I was able to successfully build the app: 我能够成功构建该应用程序:

cd appengine-try-java-master
mvn clean install

The issues happens at the last (deployment) stage on Windows. 该问题发生在Windows的最后(部署)阶段。 The tutorial says that it's necessary to run this command (the number 1111 is not the original one due to security reasons): 本教程说有必要运行此命令(由于安全原因,数字1111不是原来的):

appcfg.cmd -A master-scanner-1111 update target\appengine-try-java-1.0

I opened cmd and pasted this command. 我打开了cmd并粘贴了此命令。 The following message appears: appcfg.cmd is not recognized... Then I executed just update target\\appengine-try-java-1.0 , however this did not deploy the app. 出现以下消息: appcfg.cmd is not recognized...然后我只执行了update target\\appengine-try-java-1.0 ,但是这没有部署该应用程序。

The problem is that in the previous steps they give you instructions to download the Google App Engine SDK, but this is just a package of directories and not an installer (much like how java is packaged). 问题在于,在前面的步骤中,他们会向您提供下载Google App Engine SDK的说明,但这只是目录的包,而不是安装程序(非常类似于java的打包方式)。 The appcfg.cmd exists within that set of directories, so the user will need to add the "bin" folder in that package to their path (or, as suggested, use the full path in the command). 该appcfg.cmd存在于该目录集中,因此用户将需要将该软件包中的“ bin”文件夹添加到其路径中(或按照建议使用命令中的完整路径)。 The Google documentation is not specific enough for a person just starting out IMHO. 对于刚起步恕我直言的人,Google文档还不够具体。 I had the same problem. 我有同样的问题。

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

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