Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine: appcfg.py rollback

I'm using Windows 7 and for the life of me I cannot figure out how to call the rollback function on appcfg.py. All I want to know is what to type into the command prompt so I can rollback my app.

like image 387
Petwoip Avatar asked Jul 09 '10 17:07

Petwoip


5 Answers

Try this: appcfg.py rollback <directory>

If your application myapp resides in C:\Users\Nilesh\Documents\ then directory path should be C:\Users\Nilesh\Documents\myapp

If you installed Google App Engine Launcher in your system, then installation path should be something like this C:\Program Files\Google\google_appengine

Now open the command prompt and type the following:

C:\Program Files\Google\google_appengine>appcfg.py rollback C:\Users\Nilesh\Documents\myapp

This will solve your issue. :)

like image 188
Nilesh Tighare Avatar answered Sep 20 '22 16:09

Nilesh Tighare


The rollback command can rollback a transaction on the server, but you are unlikely to need to use that unless an update of your app failed for some reason. You should be getting some feedback from appcfg.py that such an action is required. Is that what you want to do? If so, just open a command prompt and type appcfg.py rollback.

Otherwise, please let us know what you are trying to accomplish by performing a 'rollback'.

like image 42
Adam Crossland Avatar answered Sep 23 '22 16:09

Adam Crossland


try this : this was how I did it (all from the command line) which is a slightly simpler method, which achieved the same effect.....

C:\Documents and Settings\Amit\My Documents\newproject>"C:\Program
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.5.v200909021031\appengine-java-sdk-1.2.5\bin\appcfg" rollback war


Reading application configuration data...
2009-09-17 20:47:35.859::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
Beginning server interaction for idebanet...
0% Rolling back the update.
Success.
Cleaning up temporary files...

C:\Documents and Settings\Amit\My Documents\newproject>
like image 27
aMit Avatar answered Sep 23 '22 16:09

aMit


If you use maven for deploying your app (with goal appengine:update), then you can also run maven with goal appengine:rollback. It solved the issue for me.

like image 40
hunyadym Avatar answered Sep 23 '22 16:09

hunyadym


E:\eclipse-jee-indigo-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.6.1.v201201120043r37\appengine-java-sdk-1.6.1\bin>appcfg.cmd rollback E:\AdminApp\Admin\war

For Rollback Java Application

like image 45
Master Mind Avatar answered Sep 22 '22 16:09

Master Mind