Friday, November 19, 2010

Rollback an update in Goolge app engine,

..i spent 10 minutes to figure out how to do it. So .. i decide to write it down in case of other use

Google App engine, MAC OS , Python


Google Document:

appcfg.py [options] rollback
Undoes a partially completed update for the given application. You can use this if an update was interrupted, and the command is reporting that the application cannot be updated due to a lock.





This is the address of my application :


/Users/Huy/Documents/web2pyforGAE_truyennganhay/web2py

Execution:

appcfg.py rollback /Users/Huy/Documents/web2pyforGAE_truyennganhay/web2py


Result


Application: truyennganvietnam; version: 2.
Server: appengine.google.com.
Rolling back the update.
Email: hello.i.love.it@gmail.com
Password for hello.i.love.it@gmail.com: 



Make sure you allow GAE to install Command type when it asks.

Done.