简体   繁体   中英

How to deploy a php application from local machine to google app engine

I am new to google cloud plateform. I have a php application on my local host and want to set up this on App engine. I followed some documentation and used gcloud deploy command for example given in documents. It was working properly. But in examples it first clone a git repository and deploy a code from that on app engine. I know how to launch app engine instance. 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.

I heard about google app engine launcer but didn't find any valid source for installing on 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.

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.)
  2. Creating a Cloud Platform project in case you haven't yet.
  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.

You don't need or want the launcher. You don't need to do anything with git.

安装谷歌云SDK并按照此处的所有说明操作后,我成功设置了本地开发服务器和PHP应用程序。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM