Python : GoogleApp WebApp2 Uploading Hello World
GoogleApp with PythonGoogle App Hello World
Google App webapp2 & WSGI
Uploading Google App Hello World
Before we upload we need to create App Engine Project and Application via our google account.
Here is the guide for uploading: Uploading Your Application.
The picture below shows the uploaded our Hello World application.
Note that we used app-id in the url:
We get the id from our account:
Also, we should give that info to our helloworld/app.yaml:
application: useful-loop-642 version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: helloworld.application
After creating and manage App Engine applications using the Google Developers Console. Also we have registered an application ID for our application. Now we can upload it to our website using appcfg.py, a command-line tool provided in the SDK.
k@k:~/TEST/GoogleApp$ google_appengine/appcfg.py update helloworld/ 11:54 AM Application: useful-loop-642; version: 1 11:54 AM Host: appengine.google.com 11:54 AM Starting update of app: useful-loop-642, version: 1 11:54 AM Getting current resource limits. Email: firstname.lastname@example.org Password for email@example.com: 12:15 PM Scanning files on local disk. 12:15 PM Cloning 2 application files. 12:15 PM Uploading 1 files and blobs. 12:15 PM Uploaded 1 files and blobs 12:15 PM Compilation starting. 12:15 PM Compilation completed. 12:15 PM Starting deployment. 12:16 PM Checking if deployment succeeded. 12:16 PM Deployment successful. 12:16 PM Checking if updated app version is serving. 12:16 PM Completed update of app: useful-loop-642, version: 1 k@k:~/TEST/GoogleApp$
As shown earlier, now we have a running application on a cloud as well:
Also note that our application status has been switched to "Running" from "Non Deployed" (we can check the status from App Engine).
Ph.D. / Golden Gate Ave, San Francisco / Seoul National Univ / Carnegie Mellon / UC Berkeley / DevOps / Deep Learning / Visualization