steps_to_ run_ python_ using_ google app engine on windows (1)

14
/*Steps to deploy python application on Google (Windows platform) */ Step1Make sure IIS is installed in your windows machine: Step2 :install python 2.7 Step3: Download Google AppEngine SDK for python url: https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for _Python Step 4: Double-click the SDK file you downloaded (GoogleAppEngine-1.9.25.msi ) and follow the prompts to install the SDK. After the installation is successful Google App Engine Launcher is found in your start menu. Step5:Create a directory in C: Step6: Open the Launcher:

Upload: sanket-kulkarni

Post on 05-Dec-2015

230 views

Category:

Documents


7 download

DESCRIPTION

Python

TRANSCRIPT

Page 1: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

/*Steps to deploy python application on Google (Windows platform) */

Step1Make sure IIS is installed in your windows machine:

Step2 :install python 2.7

Step3: Download Google AppEngine SDK for python

url: https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python

Step 4: Double-click the SDK file you downloaded (GoogleAppEngine-1.9.25.msi) and follow the

prompts to install the SDK. After the installation is successful Google App Engine Launcher is

found in your start menu.

Step5:Create a directory in C:

Step6: Open the Launcher:

Page 2: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

Step 7:Click File->Create New Application

Step8:Give a name to your application and browse the name of the directory which you have created in C folder and then click create:

Page 3: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

You will find the following window with name of your application :

Page 4: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

Step9: If you want to run the application on localhost select the application name in the launcher and click run :

Page 5: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

Step 10: The web server is now running, listening for requests on port 13080 as seen in the window

above. You can test the application by visiting the following URL in your web browser:

http://localhost:13080/

Step11: If you want to deploy your application on Google then

a).Sign in to google cloud using the following url:

http://cloud. google .com

Page 6: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

Click free trial

Page 7: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

b).create a project by clicking eslect a project pop up menu, note down the unique id created for your application.

Page 8: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

c).Click create the following window is seen minimize it :

Page 9: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

d).Open app.yaml replace application: application_name by application: unique_id(created on Goolge cloud) and save it.

app.yaml file(u can find this file in the directory which u have created in c:/directoryname/application_name/app.yaml

Step 9: In Launcher Click File->Add Existing Application :

Page 10: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

Step 10:Add path of your application example c:/directory_name/application_name and then click Add

Following window with your unique_id created on the google cloud Is found as below:

Page 11: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

Step 11:Select your application and then click deploy

Step 12:you will find the following window :

Page 12: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)

Open browser and type http://uniqueid.appspot.com

Step13:You wiil see the output of your application as follows:

Page 13: Steps_to_ Run_ Python_ Using_ Google App Engine on Windows (1)