[英]How to deploy a php application from local machine to google app engine
I am new to google cloud plateform. 我是Google云平台的新手。 I have a php application on my local host and want to set up this on App engine.
我在本地主机上有一个php应用程序,并希望在App引擎上进行设置。 I followed some documentation and used gcloud deploy command for example given in documents.
我遵循了一些文档,并使用了gcloud deploy命令,例如文档中给出的命令。 It was working properly.
运行正常。 But in examples it first clone a git repository and deploy a code from that on app engine.
但在示例中,它首先克隆了一个git存储库,并将该代码存储库部署到应用程序引擎上。 I know how to launch app engine instance.
我知道如何启动App Engine实例。 But I am not getting how I will upload code from my local host to app engine.
但是我不知道如何将代码从本地主机上传到应用程序引擎。 I know app.yaml and config files are needed but my question is - how I will upload and deploy code to app engine even if I created app.yaml and config files.
我知道需要app.yaml和config文件,但是我的问题是-即使创建了app.yaml和config文件,我也将如何上载代码并将代码部署到App Engine。
I heard about google app engine launcer but didn't find any valid source for installing on ubuntu. 我听说过Google App Engine启动器,但是找不到任何在ubuntu上安装的有效来源。 Is there any client software that can be used to deploy my code on app engine or is it compulsory to first set up my code on git then use it as given in example in document.
是否有任何客户端软件可用于在App Engine上部署我的代码,还是必须首先在git上设置我的代码,然后按照文档中的示例使用它,这是强制性的 ?
Follow the quickstart in the documentation . 请遵循文档中的快速入门 。 It covers everything that you need:
它涵盖了您需要的一切:
gcloud app deploy <path_to_app.yaml>
command. gcloud app deploy <path_to_app.yaml>
命令将项目部署到App Engine。 You don't need or want the launcher. 您不需要或不需要启动器。 You don't need to do anything with git.
您不需要对git做任何事情。
安装谷歌云SDK并按照此处的所有说明操作后,我成功设置了本地开发服务器和PHP应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.