问题
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!
回答1:
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.
来源:https://stackoverflow.com/questions/33231486/google-app-engine-deploy-with-django-module-after-gcloud-update