如果部署GAE时正在upload files时退出,下次部署时会报错
ConflictAnother transaction by user xxx is already in progress for app: s~xxx, version: xx. That user can undo the transaction with "appcfg rollback".
找到eclipse中的GAE SDK目录
如:D:appengine-java-sdk-1.8.2in
执行命令
appcfg.cmd rollback 后面跟gae项目war所在目录
如 appcfg.cmd -e google@gmail.com -A test rollback C:/Users/Administrator/workspace/blog/war
命令:appcfg.cmd -e <admin_email> -A <app_id> rollback C:/Users/Administrator/workspace/blog/war
说明:
admin_email,google登录email,
app_id:,是创建的Application Identifier
Reading application configuration data...
2013-9-6 13:02:55 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
信息: Successfully processed C:/Users/Administrator/workspace/blog/warWEB-INF/appengine-web.xml
2013-9-6 13:02:55 com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
信息: Successfully processed C:/Users/Administrator/workspace/blog/warWEB-INF/web.xml
2013-9-6 13:02:55 com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
信息: Successfully processed C:/Users/Administrator/workspace/blog/warWEB-INF/cron.xml
2013-9-6 13:02:55 com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
信息: Successfully processed C:/Users/Administrator/workspace/blog/warWEB-INF/dos.xml
2013-9-6 13:02:55 com.google.apphosting.utils.config.IndexesXmlReader readConfigXml
信息: Successfully processed C:UsersAdministratorworkspacelogwarWEB-INFappengine-generateddatastore-indexes-auto.xml
Beginning interaction for module default...
0% Rolling back the update.
Success.
Cleaning up temporary files for module default...
这样就提示更新线程成功啦,
另外一个上传代码的命令
命令:appcfg.cmd -e <admin_email> -A <app_id> update C:/Users/Administrator/workspace/blog/war
update:更新当前代码到服务器