~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/tornado/demos/appengine/README

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
6
 
 
7
1. Link or copy the tornado code directory into this directory:
 
8
 
 
9
   ln -s ../../tornado tornado
 
10
 
 
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
 
13
   to find it.
 
14
 
 
15
3. Install and run dev_appserver
 
16
 
 
17
   If you don't already have the App Engine SDK, download it from
 
18
   http://code.google.com/appengine/downloads.html
 
19
 
 
20
   To start the tornado demo, run the dev server on this directory:
 
21
 
 
22
   dev_appserver.py .
 
23
 
 
24
4. Visit http://localhost:8080/ in your browser
 
25
 
 
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.
 
29
 
 
30
 
 
31
If you want to deploy the blog in production:
 
32
 
 
33
1. Register a new appengine application and put its id in app.yaml
 
34
 
 
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.
 
38
 
 
39
2. Deploy to App Engine
 
40
 
 
41
   If you registered an application id, you can now upload your new
 
42
   Tornado blog by running this command:
 
43
 
 
44
   appcfg update .
 
45
 
 
46
   After that, visit application_id.appspot.com, where application_id
 
47
   is the application you registered.
 
48