Deploying Hello World.php in Google Cloud.

Here is how we can test Google Cloud Platform (GSP) with a simple PHP application.


Step 1:

First you need to create a project in GSP.visit https://console.cloud.google.com and start creating a project.Give a suitable name first.


Step 2:


Go to development and enter this

runtime: php55
api_version: 1

handlers:
- url: /.*
  script: helloworld.php


Easy method is to clone a sample project to you VM and deploy.

Activate Google cloud shell from above right corner.

Next git clone after creating a directory in your VM space.

Debug using this.

*https://8080-dot-2220042-dot-devshell.appspot.com/?authuser=0

After execution is complete, you are asked to continue deployment.

*$gcloud app deploy app.yaml --project tensile-octagon-705






Be sure to see the result in your browser.
*
http://tensile-octagon-705.appspot.com/

*---this link will be different for you

One last thing! After completing the test be sure to Clean up your project.

Share this

Related Posts

Previous
Next Post »