GAE无法部署到App Engine [英] GAE cannot Deploy to App Engine

查看:240
本文介绍了GAE无法部署到App Engine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从Eclipse发布一个Web应用程序。我在GAE上创建了四个项目,通过登录我的帐户并查看我的控制台,我可以看到这些项目。



我已将 appengine-web.xml 更改为项目的应用程序ID。

b
$ b

如果我将它更改为GAE上第一个创建的项目,它可以工作,我可以成功部署并查看我的应用程序在线工作。



如果我将 appengine-web.xml 更改为我稍后创建的另一个项目ID,它将拒绝从eclipse和我得到一个错误:


您选择的项目ID firstproject-dd不存在。转到
http://cloud.google.com/console 即可查看现有的项目ID或创建
a新的项目ID。

无法更新应用程序:发布到URL的错误:
https://appengine.google.com/api/appversion/create?app_id=firstproject-dd&version=1&
404未找到此应用程序不存在
(project_id = u'firstproject-dd')。要在此项目中创建App Engine应用程序
,请在您的控制台中运行gcloud beta app create。


我是运行GAE的免费版本(无偿支付)

解决方案

您必须运行此命令 gcloud app在 Google开发者控制台

Google云端Shell 中创建 >

App Engine不再为新创建的项目自动初始化,您必须在新创建的项目上运行此命令在第一次部署App Engine之前。

I'm trying to publish a web application from Eclipse. I have four projects created on GAE which I can see by logging into my account and viewing my console.

I have changed the appengine-web.xml to the application ID of the project.

If I change it to the first created project on GAE it works, I can deploy succesfully and see that my app is working online.

If I change the appengine-web.xml to another project ID which I created later it refuses to upload from eclipse and I get an error:

The Project ID you selected, firstproject-dd, does not exist. Go to http://cloud.google.com/console to view existing Project IDs or create a new Project ID.

Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=firstproject-dd&version=1& 404 Not Found This application does not exist (project_id=u'firstproject-dd'). To create an App Engine application in this project, run "gcloud beta app create" in your console.

I am running the free version of GAE (paid for nothing)

解决方案

You have to run this command gcloud app create in your Google Cloud Shell (see image below) from Google Developer Console

App Engine is no longer automatically initialized for newly created projects, you must run this command on a newly created project before deploying on App Engine for the first time.

这篇关于GAE无法部署到App Engine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆