Saturday, August 22, 2015

Google App Engine – Rollback an application when deploy [Python]


Issue description :- 

When we deploy project on Google App Engine and due to some error it got cancelled. It may happen if user manually cancel the deployment of project in between or slow network or any other reason.

Solution 1:-

1) Set environment variable for python

2) Place your project's app.yaml in 

"C:\Program Files (x86)\Google\google_appengine".


3) Open cmd and change the directory to 

"C:\Program Files (x86)\Google\google_appengine

using "cd" command or set the environment variable for this folder

4) Run the command

     
python appcfg.py rollback app.yaml


5) Remove the app.yaml file from that folder after rollback as the AppCfg command uses app.yaml information when you upload the app.



Solution 2:-

Use the following command :-

   appcfg.py rollback “<directory>”

No comments:

Post a Comment