简体   繁体   English

如何将php应用程序从本地计算机部署到Google App Engine

[英]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: 它涵盖了您需要的一切:

  1. Downloading the Cloud SDK (The launcher is ancient and deprecated, don't use it.) 下载Cloud SDK(启动器过时且过时,请勿使用。)
  2. Creating a Cloud Platform project in case you haven't yet. 如果尚未创建一个Cloud Platform项目。
  3. Running locally, which you've already figured out. 在本地运行,您已经弄清楚了。
  4. Deploying your project to App Engine using the 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.

相关问题 如何将我的PHP应用程序部署到Google App Engine? - How to deploy my PHP application to Google App Engine? 如何在不运行Composer的情况下在Google App Engine上部署php应用程序? - How to deploy a php application on Google App Engine without them running composer? 如何使用谷歌应用引擎将 php 项目部署到谷歌云中? - How to deploy php project into google cloud using google app engine? 如何在 Google APP Engine 中部署 PHP 和 .htaccess 中的项目? - How to deploy a project made in PHP with .htaccess in Google APP Engine? 如何从Google App Engine标准上的CI应用程序的子目录获取自定义php应用程序运行? - How to get a custom php application run from a subdirectory of a CI application on Google App Engine Standard? 从PHP应用程序使用Google Cloud Storage(不在App Engine上托管) - Use Google Cloud Storage from PHP application (not hosted on App Engine) 如何查看文件部署到Google App Engine的php应用程序 - How to view files a php application deployed to google app engine 如何在 GAE [Google App 引擎] PHP 上创建或部署另一个服务/模块(默认已部署) - How to create or deploy another service/module (have deployed on default) on GAE [Google App engine] PHP Google App Engine部署失败 - google app engine deploy fail 如何通过 PHP App Engine 应用程序在 Google Compute Engine 实例上创建 cron 作业? - How to create a cron job on a Google Compute Engine instance via a PHP App Engine application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM