1
Running the Tornado AppEngine example
2
=====================================
3
This example is designed to run in Google AppEngine, so there are a couple
4
of steps to get it running. You can download the Google AppEngine Python
5
development environment at http://code.google.com/appengine/downloads.html.
7
1. Link or copy the tornado code directory into this directory:
9
ln -s ../../tornado tornado
11
AppEngine doesn't use the Python modules installed on this machine.
12
You need to have the 'tornado' module copied or linked for AppEngine
15
3. Install and run dev_appserver
17
If you don't already have the App Engine SDK, download it from
18
http://code.google.com/appengine/downloads.html
20
To start the tornado demo, run the dev server on this directory:
24
4. Visit http://localhost:8080/ in your browser
26
If you sign in as an administrator, you will be able to create and
27
edit blog posts. If you sign in as anybody else, you will only see
28
the existing blog posts.
31
If you want to deploy the blog in production:
33
1. Register a new appengine application and put its id in app.yaml
35
First register a new application at http://appengine.google.com/.
36
Then edit app.yaml in this directory and change the "application"
37
setting from "tornado-appenginge" to your new application id.
39
2. Deploy to App Engine
41
If you registered an application id, you can now upload your new
42
Tornado blog by running this command:
46
After that, visit application_id.appspot.com, where application_id
47
is the application you registered.