SI539 Assignment 10 - Running in Production
In this assignment you will upload your application to the Google
App Engine in the cloud. You will need to
- Get a Google account if you don't already have one
- Activate App Engine on your account (requires a cell phone capable of receiving text messages)
- Choose a name for your application - most of the good ones are taken
- Change the application name in your app.yaml file to match the name that you received from Google. And then add a section to your app.yaml file to allow you to access the Developer Console (which is not turned on
by default on Google's servers):
application: drhuck-48109
version: 1
runtime: python
api_version: 1
handlers:
- url: /static
static_dir: static
- url: /_ah/admin/.*
script: $PYTHON_LIB/google/appengine/ext/admin
login: admin
- url: /.*
script: index.py
When you run the Developer Console on the localhost, it does not require any security - but on the production servers - you will need to log in using your Google account before you can access the developer console.
- Upload your application to App Engine and test it
- Since you don't have a "new account" button in your application, to create your first account, go to your application's Development Console at
http://ae-12-ajax.appspot.com/_ah/admin/
Replace "ae-12-ajax" with your application id.
- You can go to the Application Dashboard (as distinct from the Developer Console) either at appengine.google.com or by selecting your application in the Launcher and clicking the "Dashboard" icon on the far right.
You can use the book and this site as reference material for
this assignment:
http://code.google.com/appengine/docs/python/gettingstarted/uploading.html
You do not need to change any code from the previous assignment - simply upload
the same code as before.
Screen Shots
Please hand in the following screen shots:
- A screen shot of the main page of your application
- A screen shot of your AJAX-Chat working only one user
- A screen shot of the Developer Console (/_ah/admin/) showing the
ChatMessage entities
- A screen shot of the application dash board (appengine.google.com)
showing the log including some log messages showing the retrieval of the /messages URL
Make sure that your include the address bar in the screen shots so we can see that
the application is indeed running in the Google cloud.
www.appenginelearn.com