[英]Unable to deploy my react app to google cloud platform vm
I started learning Google Cloud Platform recently.我最近开始学习谷歌云平台。 So, created a trial account.
因此,创建了一个试用帐户。 Can I deploy my learning web application to the VM I created and browse it from my local?
我可以将我的学习 Web 应用程序部署到我创建的 VM 并从我的本地浏览它吗? I tried running
gcloud app deploy
from my vm but getting error...我尝试从我的虚拟机运行
gcloud app deploy
但出现错误...
== ERROR: (gcloud.app.deploy) PERMISSION_DENIED: The caller does not have permission==
VM (Compute Engine) and App engine are two different things, you can read more in this answer . VM(Compute Engine)和 App Engine 是两个不同的东西,您可以在这个答案中阅读更多内容。
gcloud app deploy
is app engine utility and used to deploy your application to app engine. gcloud app deploy
是应用引擎实用程序,用于将您的应用程序部署到应用引擎。
If you have your code in compute engine and want to deploy to app engine, make sure service account associated with your vm has necessary scopes and permissions.如果您的代码在计算引擎中并想部署到应用引擎,请确保与您的虚拟机关联的服务帐户具有必要的范围和权限。 Please check this answer .
请检查此答案。
On addition to that you can start withcloud shell for deploying your web application.除此之外,您还可以从云外壳开始部署您的 Web 应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.