Kayote
Kayote

Reputation: 15647

Google App. Engine - Hosting our Web Application

All,

We are trying to host our web application on Google App. Engine with little success.

Here are the specifics:

The web application is built on HTML5, SVG & Javascript. We are using python 2.6 for upload. We initially used the following tutorial for upload but are getting errors once its uploaded.

Link to tutorial: http://www.labnol.org/internet/host-website-on-google-app-engine/18801/

We are getting errors in the appcfg.py python file. We are totally clueless how to go about using this so any guidance would be awesome, tutorials would be even more so.

UPDATE: Further to the outcry and Milimetric's helpful post, here is more detail:

We have managed to upload the web application onto the Google App Engine. Going into the dashboard, we can see the application is running (we can see the instance graphs and CPU stats), however, when we execute the custom link to the web application, we only get the 'Hello World' message.

We followed the tutorial by Milimetric & Rolled back the 'appcfg.py' to original state. Following the tutorial, we only made changes to the 'app.yaml' (inserted our application name). We didnt write any custom python script.

We are not getting any errors anywhere, only the message 'Hello World' upon executing the link in the browser window.

Hope the above is more useful.

Cheers,

Upvotes: 1

Views: 1165

Answers (2)

merry1
merry1

Reputation: 1

Google app engine is a cloud computing technology and it is designed for developing and hosting web applications it supports APIs, and frameworks. To solve this issue you ha eto understand app engine completely so to learn more about app engine visit the link above:

http://en.wikipedia.org/wiki/Google_App_Engine

Upvotes: -1

Milimetric
Milimetric

Reputation: 13549

If any of the following is redundant (or you already went through the steps), let me know and I'll edit. Just didn't know where to start or how familiar with app engine you were.

  1. That tutorial will set up a functional app engine site. Were you able to get that running without any errors before adding your own code? Try running it locally with the launcher (localhost:8080 by default).
  2. To add code, you have to start with the main.py file from the tutorial. Google app engine applications use the google.appengine.ext.webapp namespace to get started and listen to requests. In main.py, start with MainHandler and add code there.
  3. To add more "routes" to your app, look at the WSGIApplication constructor: webapp.WSGIApplication ([('/(.*html)?', MainHandler)], debug=True) from their tutorial. So for example, you can have a route go to contact-us like this: webapp.WSGIApplication ([('/(.*html)?', MainHandler), ('/contact-us', ContactUsHandler)], debug=True).
  4. As far as tutorials, the google app engine "Getting Started" tutorial is a good primer to get you in the mindset: http://code.google.com/appengine/docs/python/gettingstarted/

Upvotes: 1

Related Questions