for Beginner who using Google App Engine and memo for myself.
Resource :
1.Google App Engine(GAE)
2.Docs
1.Download and install at C:\Google\google_appengine
Two pyhton programs thats your need to know first.
a.dev_appserver.py, the development web server(在自己電腦用的Web server)
b.appcfg.py, for uploading your app to App Engine(Upload 到你的App Host)
2.Create your folder(project) like C:\helloworld
3. Create helloworld.py
print 'Content-Type: text/plain'
print ''
print 'Hello, world! Ray '
4.Create app.yaml
application: yehrayyeh
version: 1
runtime: python
api_version: 1
handlers:
- url: /.*
script: helloworld.py
5.在自己電腦測試
c:\helloworld>dev_appserver.py c:/helloworld
測試 URL http://localhost:8080/
6.放到 GAE 去看看, Google http://appengine.google.com/
方法如下:appcfg.py update c:/helloworld
沒有留言:
張貼留言