简体   繁体   English

将Google App Engine项目迁移到较新版本(使用Eclipse)

[英]Migrate Google App Engine project to newer version (with Eclipse)

I have a Google Web Toolkit (GWT) application (Java) that is running on Google App Engine. 我有一个在Google App Engine上运行的Google Web Toolkit(GWT)应用程序(Java)。 The app is running fine, but i haven't touched the code in a while. 该应用程序运行良好,但是我有一段时间没有触摸代码了。 Now i need to modify some things, but i can't get Eclipse/AppEngine to deploy the project any more. 现在我需要修改一些东西,但是我无法让Eclipse / AppEngine再部署项目了。 I have reinstalled Eclipse, downloaded and installed tge GWT and Google Cloud Platfrom plugins. 我已经重新安装了Eclipse,下载并安装了tge GWT和Google Cloud Platfrom插件。 And the Cloud SDK. 还有Cloud SDK。

I'm using Eclipse Mars/2 but i am willing to do this from command line of necessary. 我正在使用Eclipse Mars / 2,但我愿意从必要的命令行中执行此操作。

My project is now GWT-compiling fine and it runs locally with the development server. 我的项目现在可以通过GWT编译,并且可以在开发服务器上本地运行。

What i fail to do is get the link up with my existing AppEngine project. 我无法做的是获取与现有AppEngine项目的链接。 The Google Cloud Platform button only proposes "Create New Project" and the "Deploy to App Engine Standard" option is greyed out. Google Cloud Platform按钮仅建议“创建新项目”,“部署到App Engine标准”选项为灰色。 What do i need to configure to link the GWT app to my existing AppEngine project and deploy? 我需要配置什么以将GWT应用程序链接到我现有的AppEngine项目并进行部署?

If you've installed the Cloud Tools for Eclipse , you should be able to right-click on the project and select Configure > Convert to App Engine Standard Project . 如果您已经安装了EclipseCloud Tools ,则应该能够右键单击该项目,然后选择配置>转换为App Engine标准项目 Basically that removes traces of the older GPE configuration and installs the App Engine Standard facet and configures the App Engine runtime libraries. 基本上,这会删除较旧的GPE配置的痕迹,并安装App Engine标准构面并配置App Engine运行时库。

Go to Project > Properties > Google Cloud Platform > App Engine Deployment: 转到项目>属性> Google Cloud Platform> App Engine部署:

Refresh the list. 刷新列表。

Make sure it is linked to account and new version number is psecified. 确保它已链接到帐户,并且新版本号已被清除。 => Apply. =>申请。

Now "Google Cloud Platform > Deploy to App Engine Standard" is available. 现在,“ Google Cloud Platform>部署到App Engine标准”可用。

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

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