阅读背景:

失败后使用appcfg的GAE错误

来源:互联网 
D:\kubox\python\GAE>appcfg.py rollback D:\kubox\python\GAE\myapp1
Traceback (most recent call last):
  File "D:\kubox\python\GAE\appcfg.py", line 77, in <module>
    DIR_PATH = get_dir_path(os.path.join('lib', 'ipaddr'))
  File "D:\kubox\python\GAE\appcfg.py", line 67, in get_dir_path
    'file and %s.' % sibling)
ValueError: Could not determine directory that contains both, this file and lib\
ipaddr.

After a failure deployment, I can't perform the appcfg.py, did I make a wrong syntax? where did I do wrong? WIN 7, cmd prompt

部署失败后,我无法执行appcfg.py,我的语法是否错误?我哪里做错了? WIN 7,cmd提示符

2 个解决方案

#1


0  

Try running appcfg.py from where your GAE SDK is installed.

尝试从安装GAE SDK的位置运行appcfg.py。

#2


0  

Usually rollback should suffice, but after a failure in deployment, sometimes the upload doesn't work by default.

通常回滚应该足够,但在部署失败后,有时默认情况下上传不起作用。

As a work around, you can change the app version (app.yaml), and then try deployment, It should go fine.

作为一种解决方法,您可以更改应用程序版本(app.yaml),然后尝试部署,它应该没问题。

Next you can log in to your applications dashboard and in versions tab, you can switch the latest version as default one. Your new version should be up and running now. As a last step you can stop any instances of old version of your app.

接下来,您可以登录到应用程序仪表板,在版本选项卡中,您可以将最新版本切换为默认版本。您的新版本应该立即启动并运行。最后一步,您可以停止旧版应用的任何实例。

Hope this helps

希望这可以帮助


分享到: