Harsha
Harsha

Reputation: 33

Google App Engine roll back previous update of a same version

I tried deploying App Engine, but it updated the same version. The last update caused the working version to crash. Is it possible to restore to previous update of same version

I have used following command
appcfg.sh update [location]

Upvotes: 0

Views: 2409

Answers (2)

Georgios S.
Georgios S.

Reputation: 229

If you have the proper working code stored and you want to upload the same version I would suggest to do a rollback and then update the proper code again. If you are ok uploading a new version go directly with the update.

The proper use of the rollback or update command is :

1) Download the Java SDK from here and extract it to a folder of your choice.

2) Open a command line and run this:

Windows

[path_of_java_sdk]\bin\appcfg.cmd update [project_path]\src\main\webapp\ -A [project_name] -V [version number]

Mac/Linux

./[path_of_java_sdk]/bin/appcfg.sh update [project_path]/src/main/webapp/ -A [project_name] -V [version number]

Example:

F:\user\folder\appengine-java-sdk-1.9.49\bin\appcfg.cmd update F:\myproject\somefolder\src\main\webapp\ -A AppName-1111 -V 3

If you want to perform a rollback simply replace the update on the above commands.

Upvotes: 0

minou
minou

Reputation: 16563

No, when you overwrite a version, the previous code for that version is permanently gone.

You should update your app.yaml file to a new version before deploying.

Upvotes: 1

Related Questions