无法重新启动在Google Cloud App Engine上停止的应用程序运行。

huangapple go评论97阅读模式
英文:

Cannot restart an stopped app run on Google Cloud App Engine

问题

我已经通过Google Cloud App Engine和GLC部署了一个Python应用程序。因为我需要花费很多时间来更新代码,所以我在Google Cloud控制台的IAM和管理设置下禁用了该应用程序。然而,在更新了我的代码并在本地测试后,我无法找到重新部署应用程序的方法。

我使用了以下GLC命令进行重新部署:

glcoud app deploy

但是我收到了以下错误消息:
无法部署到状态为[USER_DISABLED]的应用程序:不允许部署已停止的应用程序。

然后我使用了

glcoud app create

我收到了以下错误消息:
错误:(gcloud.app.create) 项目已经包含位于[australia-southeast1]地区的App Engine应用程序。您可以使用gcloud app deploy来部署您的应用程序。

英文:

I have deployed an python app on Google Cloud App Engine through GLC. Because I needed to spend a lot of time to update the code, I disabled the app in the settings under IAM & Admin in Google Cloud Console. However, after updating my code and testing it locally. I cannot find a way to redeploy the app.

I used the following command of GLC to redeployit:

glcoud app deploy

But I got the following error:
Unable to deploy to application with status [USER_DISABLED]: Deploying to stopped apps is not allowed.

I then used

glcoud app create

I got the following error:
ERROR: (gcloud.app.create) The project already contains an App Engine application in region [australia-southeast1]. You can deploy your application using gcloud app deploy.

答案1

得分: 0

你需要前往 https://console.cloud.google.com/appengine/settings,选择项目,然后点击 '启用应用程序'。

要禁用它,使用相同的路径并点击 '禁用应用程序'。

英文:

You need to go to https://console.cloud.google.com/appengine/settings, select the project and then click 'Enable Application'.

To disable it, use the same path and click on 'Disable Application'

无法重新启动在Google Cloud App Engine上停止的应用程序运行。

huangapple
  • 本文由 发表于 2023年6月26日 15:10:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/76554302.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定