IT papersTips

Deploying Hello World.php in Google Cloud.

Full width home advertisement

2d826abe.com/scripts/

Post Page Advertisement [Top]

Todays Giveaways and Downloads

2d826abe.com/scripts/

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

gcloudarch

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.

createProject

Step 2:


Go to development and enter this

runtime: php55
api_version: 1

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

gcloud1

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

gcloud2


gcloudcloudshell2


gcloudcloudshell3

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.

.com/img/a/

Bottom Ad [Post Page]

No comments: