Verified
Status Update
Comments
[Deleted User] <[Deleted User]> #2
using the below does resolve the issue and allow the app to be deployed.
gcloud config set app/use_gsutil true
gcloud config set app/use_gsutil true
mi...@gmail.com <mi...@gmail.com> #3
Thanks for the update! We think we have a handle on this issue, and there should be a patch in the Cloud SDK 106 release due out next week that will work with the 'use_gsutil false' setting (which will eventually become the new default).
[Deleted User] <[Deleted User]> #4
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.
zj...@google.com <zj...@google.com> #5
We're targeting a fix for this issue for Cloud SDK release 0.9.88.
zj...@google.com <zj...@google.com> #6
0.9.88 is out. Please let us know if you can still reproduce this issue.
[Deleted User] <[Deleted User]> #7
Fixed! I removed my workaround and was still able to deploy. Thanks for a quick turnaround on this!
zj...@google.com <zj...@google.com> #8
Glad we could make it work for you!
Description
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/spainhower/google-cloud-sdk/bin:/home/spainhower/llvmbuild/bin:/home/spainhower/npm/bin:/home/spainhower/npm/n/bin:/home/spainhower/bin:/home/spainhower/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/spainhower/.rvm/bin:/home/spainhower/.rvm/bin:/home/spainhower/google_appengine:/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.