planktonicme / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

`gcloud preview app deploy` silently strips some directories #467

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Try to deploy an app with a top-level directory called 'webapp'

What is the expected output? What do you see instead?
I expect it to deploy the files I've told it to. (Or error, with a sensible 
message)
Instead, it shows the webapp files in the deployment manifest, but they don't 
appear in the version deployed on appengine.

This can be worked around by renaming the directory and all references - but 
this isn't obvious, or documented.

What is the output of 'gcloud info'?

Google Cloud SDK [91.0.1]

Platform: [Linux, x86_64]
Python Version: [2.7.6 (default, Jun 22 2015, 17:58:13)  [GCC 4.8.2]]
Python Location: [/usr/bin/python2]
Site Packages: [Disabled]

Installation Root: [/home/m/google-cloud-sdk]
Installed Components:
  core: [2015.12.16]
  app-engine-python: [1.9.30]
  core-nix: [2015.12.16]
  gcloud: []
  gsutil-nix: [4.16]
  gsutil: [4.16]
  bq: [2.0.18]
  bq-nix: [2.0.18]
System PATH: 
[/home/m/google-cloud-sdk/bin:/home/m/tmp/AWS-ElasticBeanstalk-CLI-2.6.3/eb/linu
x/python2.7:/home/m/.gem/ruby/1.9.1/bin:/home/m/bin:/opt/freeware/bin:/home/m/bi
n:/opt/freeware/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
:/usr/games:/usr/local/games]
Cloud SDK on PATH: [True]

Installation Properties: [/home/m/google-cloud-sdk/properties]
User Config Directory: [/home/m/.config/gcloud]
User Properties: [/home/m/.config/gcloud/properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [snap-ci@decent-digit-629.iam.gserviceaccount.com]
Project: [None]

Current Properties:
  [core]
    account: [snap-ci@decent-digit-629.iam.gserviceaccount.com]
    disable_usage_reporting: [True]
  [app]
    use_appengine_api: [True]
    suppress_change_warning: [true]

Logs Directory: [/home/m/.config/gcloud/logs]
Last Log File: [/home/m/.config/gcloud/logs/2016.01.13/12.13.29.742548.log]

Please provide any additional information below.

Original issue reported on code.google.com by mike.bry...@ocado.com on 13 Jan 2016 at 2:53

GoogleCodeExporter commented 8 years ago
Hi, Thank you for the feedback. 

Can you provide more information about the app you are trying to deploy and the 
steps you took to try to deploy it?

Original comment by vil...@google.com on 14 Jan 2016 at 4:28

GoogleCodeExporter commented 8 years ago
This is the same app as in #462: 
https://github.com/ocadotechnology/codeforlife-deploy-appengine

I'm using `gcloud preview app deploy`

In my wsgi file main.py I was trying to import from a directory in the project 
called `webapp/wsgi.py`
On upload, the whole webapp directory vanishes, without generating any errors 
(and it does appear in the manifest json output in debug mode)

Renaming the directory to `django_site` fixed the issue

Original comment by mike.bry...@ocado.com on 14 Jan 2016 at 11:53

GoogleCodeExporter commented 8 years ago
There was a backend issue where some files weren't getting copied from GCS into 
the App Engine serving stack around the time you posted this. That change has 
since been rolled back. I think if you rename it back to webapp it should work 
now.

Original comment by dlor...@google.com on 15 Jan 2016 at 12:20

GoogleCodeExporter commented 8 years ago

Original comment by z...@google.com on 18 Feb 2016 at 7:09