How to deploy the webpy-gallery in GAE
1) Create a account in Google AppEngine:
a) Go to http://appengine.google.com and sign in (with a Google/Gmail account) to the service. When you sign in, you will create a project too. This project have a app-id ( a identifier, please anote it ).
2) Download the latest version of AppEngine SDK:
a) Go to http://code.google.com/appengine/downloads.html and download the latest version of AppEngine SDK for Python for your Operation System.
b) Extract the compacted file in your home folder for example. This will create a folder called "google_appengine". This folder contains all necessary files to develop, debug and deploy your app in GAE.
3) Download the skeleton app 'webpy-gallery' and alter the app.yaml file:
a) In the google_appengine folder get the webpy-gallery app. This app contains a basic skeleton of a web.py app to run in GAE.
Now in the google_appengine folder you have a sub-folder called webpy-gallery and in this sub-folder you have a file called app.yaml. This file is a deployment descriptor where you can configure 'what' and 'how' deploy in GAE. Then as a first step, alter the application property for the id of the application that you have created in STEP 1.
4) Run the application in dev mode:
a) To test your app, open a shell (bash) and go to google_appengine folder and type:
This will start the 'development webserver' in the address http://localhost:8008 then you can access this address in the browser.
5) Deploy your application in GAE:
For deploy your app in GAE just run the command:
6) Last tip:
- Ever that you alterate a html file, you need compile this file before update your app, the go to the webpy-gallery folder and execute the shell script compile_template.sh
a) Go to http://appengine.google.com and sign in (with a Google/Gmail account) to the service. When you sign in, you will create a project too. This project have a app-id ( a identifier, please anote it ).
2) Download the latest version of AppEngine SDK:
a) Go to http://code.google.com/appengine/downloads.html and download the latest version of AppEngine SDK for Python for your Operation System.
b) Extract the compacted file in your home folder for example. This will create a folder called "google_appengine". This folder contains all necessary files to develop, debug and deploy your app in GAE.
3) Download the skeleton app 'webpy-gallery' and alter the app.yaml file:
a) In the google_appengine folder get the webpy-gallery app. This app contains a basic skeleton of a web.py app to run in GAE.
svn checkout http://webpy-gallery.googlecode.com/svn/trunk/ webpy-gallery
Now in the google_appengine folder you have a sub-folder called webpy-gallery and in this sub-folder you have a file called app.yaml. This file is a deployment descriptor where you can configure 'what' and 'how' deploy in GAE. Then as a first step, alter the application property for the id of the application that you have created in STEP 1.
4) Run the application in dev mode:
a) To test your app, open a shell (bash) and go to google_appengine folder and type:
python dev_appserver.py webpy-gallery
This will start the 'development webserver' in the address http://localhost:8008 then you can access this address in the browser.
5) Deploy your application in GAE:
For deploy your app in GAE just run the command:
python appcfc.py update webpy-gallery
6) Last tip:
- Ever that you alterate a html file, you need compile this file before update your app, the go to the webpy-gallery folder and execute the shell script compile_template.sh
Post a Comment