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,
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.
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).
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.
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).
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/
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
Related
I have a relatively small Java app, which I'd like to move over to the Google App Engine. It runs in the console, with no user input needed after the initial startup. I researched a bit on how to deploy it, but all tutorials seem to focus on Java web apps, when I don't really need that. Is it possible to deploy my app if it's not a web app?
App Engine is probably the wrong GCP platform for you - you'd probably be better served just deploying your jar directly onto a Google Compute Engine node. GAE is pretty explicitly oriented around web applications and you'd need to do a bunch of configuration in order to have it work for your use case.
Does your non-web Java app handle web requests? If not, it seems difficult to imagine that you would be able to reach your deployed app and use it for any purpose, once deployed. Your Java app should be able to handle requests, to make deployment worthwhile, and the deployed app useful.
You may find out about how your app should handle requests by reading the How Requests are Handled documentation page.
I am new to Google Cloud. So far I have just got some experience in using WHM/Cpanel. Is there a similar app that I can install on App Engine to fully control it without using any commands?
Depending on what you're trying to do, most of the common App Engine operations can be controlled from the Google Cloud Console. Here is a screen shot of the console:
For example, looking at Google's documentation on Controlling Access with Firewalls, you can see in the "Creating firewall rules" section that Google gives instructions for doing this in the console (as well as via the command line with gcloud, or programmatically via APIS).
Our App - NoCommandLine - is a GUI for managing Google App Engine. With the App, you click buttons/icons instead of typing commands at the command line to create, run and deploy your Apps. We also offer a functionality to download your App from GAE (more on that here)
I deployed the Web Application "Google App Engine Tutorial example 1" (http://googcloudlabs.appspot.com/codelabexercise1.html) to GAE at the site http://templiba.appspot.com . I can access the site but the application is not saving the Product and Item values in the DataStore. The same is happening when I try on my local. It there a known fix for it? Or could you assist me with a Tutorial example with code that writes to the DataStore? Thank you.
Are you sure you made all the required modifications to the code provided as outlined in Step 4? When I migrated from Google App Engine for Python to Java, the Getting Started guide was very useful; it covers all the basic concepts starting from creating the Eclipse project while presenting the code in a easier way to understand (in my opinion) than the Code Labs which seem slighly outdated (broken links, etc).
Getting Started
Datastore Overview within Getting Started
For my new project I am planning to use PlayFramework and Google App-Engine. I was trying to create a sample application in playframework and tried to deploy it to app-engine.
it says the application is deployed successfully, but when I hit the url of my application
it shows a message "Your application is ready", But does not show the home page of my application.
I am using Play Framework 1.2 and GAE-1.4 plugin. I tried to deploy the application using the plugin and also using "appcfg".
The application works fine in local development mode but as soon as I deploy it to app-engine, the home page is replaced by "Your application is ready" message.
Can u guys tell me if I am doing anything wrong with the deployment of play-framework? I tried searching if anybody faced similar kind of issues in both google and SO but was not able to find any help.
Also, I read some post that GAE plugin does not work with Play-Framework 2.0(Note : I am using Play 1.2 in the above example) . I would like to know How can I deploy a play2.0 application in appengine.
Thanks a lot in advance!!!
Did you add application name and version number in appengine-web.xml before deploy?
I'm a newbie to Google App Engine but have played around with Django in the past so I am trying to use Django-nonrel with GAE.
There's not much information online, but have followed these tutorials successfully:
http://blog.sidmitra.com/getting-up-and-running-with-django-nonrel
http://www.allbuttonspressed.com/projects/djangoappengine
I have managed to get setup fine and can get the 'It worked' page on local. However, when I upload my project to the Google App Engine Server I get a page with the following:
"Nonrel-testapp
The page you requested could not be found.
Powered by Django-nonrel"
I have used the following to upload:
python2.5 manage.py deploy
What am I doing wrong?
Are there any guides for uploading your Django app?
Thanks
You're not doing anything wrong. On the production server DEBUG is False, so you won't see that little "It worked" page. Since you're not the first one who was irritated by this I've just added a custom "It works!" page which also shows up on the production server. Just update your testapp source to see it.