Google App Engine使用appcfg.sh进行回滚 [英] Google App Engine Make a rollback with appcfg.sh

查看:121
本文介绍了Google App Engine使用appcfg.sh进行回滚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于部署失败,我尝试进行回滚,我的服务器代码位于java上,并且我正在使用App Engine Eclipse PlugIn。我的appcfg.sh文件位于 /Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.5/appengine-java-sdk-1.7.5/bin/appcfg.sh






但是当我尝试这个 sudo时,我得到Command not Found /Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.5/appengine-java-sdk-1.7.5/bin/appcfg.sh rollback / Documents / workspace / server_side / war



我无法意识到出了什么问题。我不知道是否是正确的appcfg,因为有appcfg.cmd和appcfg.sh,我使用的是imac(Unix环境),所以我使用appcfg.sh进行回滚。我尝试了几种不同的方式。并没有什么好事发生。也许我错过了一些东西。
thanks!

解决方案

它缺省没有执行权限:

  -rw-r  -  r-- 1 yorkw staff 558 11 Dec 06:01 appcfg.sh 
$ b

运行 chmod 755 appcfg.sh 更改权限:

  -rwxr-xr-x 1 yorkw staff 558 11 Dec 06:01 appcfg.sh 

然后你应该可以在终端中运行它。


I'm trying to make a rollback due a deploy failed, my server code is on java, and also i'm using App Engine Eclipse PlugIn for. my appcfg.sh file is located at /Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.5/appengine-java-sdk-1.7.5/bin/appcfg.sh


but i get "Command not Found" when i try this sudo /Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.5/appengine-java-sdk-1.7.5/bin/appcfg.sh rollback /Documents/workspace/server_side/war

I can't realize what's wrong. i don`t know if is the right appcfg, because there is appcfg.cmd and appcfg.sh, i'm using an imac(Unix enviro) so i use the appcfg.sh to made the rollback. i've tried in several different ways. and nothing good happen. maybe i'm missing something. thanks!

解决方案

It does not have execute permission by default:

-rw-r--r--  1 yorkw  staff   558 11 Dec 06:01 appcfg.sh

Run chmod 755 appcfg.sh to change the permission:

-rwxr-xr-x  1 yorkw  staff   558 11 Dec 06:01 appcfg.sh

Then you should be able to run it in terminal.

这篇关于Google App Engine使用appcfg.sh进行回滚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆