To create an _Isolated_ (no global installs/sudos!), local App engine hello world on OS X in 60 seconds, do this:
- Environment setup :
mkdir aehello; cd aehello
- Install Ale :
git init; git submodule add git://github.com/mpstx/Ale.git .ale
- Init Ale :
.ale/init.sh
- Install appengine :
ale install gae
- Install createapp :
ale install createapp
- Create a basic app :
ale createapp helloworldwebapp
- Start local server and browser :
ale gae start
You can now edit helloworld.py and refresh the browser...change should be reflected instantly.
To delete everything just rm -rf the aehello directory and you'll be totally clean again.
To Deploy it to the cloud...
- Go create a google app engine account.
- create an appid
- modify your app.yaml to reflect your new id
- To deploy to yourappid.appspot.com :
ale gae deploy
5 comments:
I haven't developed anything of merit in Appengine, but the pydev plugin for eclipse makes it stupid easy to code/test/deploy.
Agreed. I've used pydev extensively and it is great for local debugging as well.
Have you considered using buildout to automate this? There is a buildout recipe for appegine, but last time I tried it .. it sucked. Perhaps you can improve it or write a new one that would work seamlessly.
This project uses buldout to set up a GAE development environment http://code.google.com/p/bridal/
Yep I looked at those, but they didn't meet my needs. This app engine example is just the tip of the iceberg of what ale can make easy. (check out the examples for testing, coverage, continuous testing, etc)
Post a Comment