binbeobo / google-cloud-sdk

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

Incorrectly identifies project as Ruby #387

Closed GoogleCodeExporter closed 8 years ago

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

Create a node app with a `.ruby-version` file in project dir

What is the expected output? What do you see instead?

Expect project to build custom runtime managed vm.  Instead get the error:

ERROR: (gcloud.preview.app.deploy) This appears to be a Ruby app. You'll need to provide the command to run the app in production. Please either run this interactively or create an app.yaml with "runtime: python" and an "entrypoint" field defining the full command.


What is the output of 'gcloud info'?

$ gcloud info Google Cloud SDK [0.9.86]

Platform: [Linux, x86_64] Python Version: [2.7.10 (default, Oct 14 2015, 16:09:02) [GCC 5.2.1 20151010]] Python Location: [/usr/bin/python] Site Packages: [Disabled]

Installation Root: [/home/spainhower/google-cloud-sdk] Installed Components: kubectl: [] app-engine-python: [1.9.28] core-nix: [2015.09.03] core: [2015.11.06] app: [] gcloud: [] gsutil-nix: [4.14] gsutil: [4.15] bq: [2.0.18] kubectl-linux-x86_64: [1.0.7] app-engine-java: [1.9.28] bq-nix: [2.0.18] System PATH: [/home/spainhower/.rvm/gems/ruby-1.9.2-p330/bin:/home/spainhower/.rvm/gems/ruby- 1.9.2-p330@global/bin:/home/spainhower/.rvm/rubies/ruby-1.9.2-p330/bin:/home/spa inhower/google-cloud-sdk/bin:/home/spainhower/llvmbuild/bin:/home/spainhower/npm /bin:/home/spainhower/npm/n/bin:/home/spainhower/bin:/home/spainhower/bin:/usr/l ocal/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gam es:/home/spainhower/.rvm/bin:/home/spainhower/.rvm/bin:/home/spainhower/google_a ppengine:/home/spainhower/.rvm/bin] Cloud SDK on PATH: [True]

WARNING: There are old versions of the Google Cloud Platform tools on your system PATH. /home/spainhower/google_appengine/dev_appserver.py

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

Account: [spain@homebuddy.io]


Please provide any additional information below.

It appears that gcloud now tries to detect the project type when deploying to 
GAE.  My project is a custom runtime node.js application, but I have a 
.ruby-version file because I lint the SCSS on CI.  This causes a false positive 
with gcloud identifying the project as a Ruby project and emitting the error 
pasted above.

Original issue reported on code.google.com by sp...@homebuddy.io on 12 Nov 2015 at 5:11

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
There's definitely a bug here, but it "deploy" doesn't key of of .ruby-version, 
it keys off of "Gemfile".  The only work-around right now is to remove the 
Gemfile :-/

Original comment by mind...@gmail.com on 12 Nov 2015 at 5:48

GoogleCodeExporter commented 8 years ago
Good to know.  I can probably actually just delete the Gemfile as a post-test 
step on CI.  The GAE managed VM doesn't use the Ruby libraries at all.

Original comment by sp...@homebuddy.io on 12 Nov 2015 at 5:50

GoogleCodeExporter commented 8 years ago
We're targeting a fix for this issue for Cloud SDK release 0.9.88.

Original comment by z...@google.com on 20 Nov 2015 at 6:54

GoogleCodeExporter commented 8 years ago
0.9.88 is out. Please let us know if you can still reproduce this issue.

Original comment by z...@google.com on 24 Nov 2015 at 9:29

GoogleCodeExporter commented 8 years ago
Fixed!  I removed my workaround and was still able to deploy.  Thanks for a 
quick turnaround on this!

Original comment by sp...@homebuddy.io on 24 Nov 2015 at 9:54

GoogleCodeExporter commented 8 years ago
Glad we could make it work for you!

Original comment by z...@google.com on 24 Nov 2015 at 9:55