Google App Engine在gcloud更新后部署了Django模块? [英] Google App Engine deploy with Django module after gcloud update?
问题描述
我们正在使用Django 1.7部署到GAE(我们将它作为我们的 virtualenv
的符号链接模块发送)。一切都很好,直到最新更新的 gcloud
工具。
现在,当我们执行 $ gcloud preview app deploy app.yaml
我们得到:
更新模块[默认] .failed。
错误:(gcloud.preview.app.deploy)错误响应:[400]收到无效的
JSON有效载荷。未知名称datata_devops / local / libs / django
/contrib/formtools/locale/hr/_lc_messages/django.moat
'version.deployment.files [2368]':重复地图键:' datata_devops / local
/libs/django/contrib/formtools/locale/hr/LC_MESSAGES/django.mo'已设置
。
我们猜测这与我们上传自己的Django版本有关,但是我们不知道如何解决这个问题。我们已经尝试使用旧版本的 gcloud
工具的电脑,但是我们收到的文件太多(限制为10,000)
错误。
有关如何使用最新的 gcloud
克服这个问题的任何提示?谢谢!
替代方法 gcloud preview app deploy
p>
- 检查这个@ klenwell对这个Q& A的答案是否新的位置
appcfg.py
在Google Cloud SDK中:
使用Google App Engine,为什么现在得到命令未找到在本地机器上运行appcfg.py命令? - 使用 GAE SDK 的
appcfg.py
来更新您的应用。
We are deploying to GAE using Django 1.7 (we are sending it as a symlinked module of our virtualenv
). Everything was fine up until the latest update of the gcloud
tools.
Now when we execute $ gcloud preview app deploy app.yaml
we get:
Updating module [default]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [400] Invalid
JSON payload received. Unknown name "datata_devops/local/libs/django
/contrib/formtools/locale/hr/_lc_messages/django.mo" at
'version.deployment.files[2368]': Repeated map key: 'datata_devops/local
/libs/django/contrib/formtools/locale/hr/LC_MESSAGES/django.mo' is
already set.
We are guessing this has to do with the fact that we upload our own version of Django, but we have no idea on how to solve this. We have tried using a computer with an older version of the gcloud
tools, but we are getting the Too many files (limit is 10,000)
error.
Any hints on how to overcome this issue with the latest gcloud
? Thanks!
Alternate approaches to gcloud preview app deploy
:
- check this @klenwell's answer to this Q&A for the new location of
appcfg.py
in the Google Cloud SDK: With Google App Engine, why do I now get "command not found" when running the appcfg.py command on my local machine? - use the GAE SDK's
appcfg.py
to update your app.
这篇关于Google App Engine在gcloud更新后部署了Django模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!