我試圖在成功發佈其中一個測試後第一次部署一個GAE項目應用程序,我得到一個關於錯誤的ruby版本的錯誤。我不確定它是否是其他寶石之一,但我不熟悉ROR或GCS,並且我不確定還有什麼可做的。 謝謝。gcloud部署錯誤「Ruby版本是2.3.3,但是你的Gemfile指定了2.4.1」,雖然我的版本是2.4.1
下面是我的一些系統設置:
$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin14]
$ rvm list
rvm rubies
* ruby-2.4.0 [ x86_64 ]
=> ruby-2.4.1 [ x86_64 ]
$ rails -v
Rails 5.0.2
寶石文件:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.0.2'
ruby "2.4.1"
# Use sqlite3 as the database for Active Record
# gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 5.0.0.beta1'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
#gem 'coffee-rails', '~> 4.0.0'
gem 'coffee-rails', '~> 4.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
group :production do
gem "mysql2", "~> 0.3.0"
end
group :development, :test do
gem "sqlite3"
end
gem "rack"
gem "puma"
是什麼在你'gemfile.lock'文件紅寶石版本? 'bundle install'是否在你的本地機器上成功完成並且'rails s'是否啓動?來自gemfile.lock的 –
:'RUBY VERSION ruby 2.4.1p111。平臺紅寶石。 'bundle install'工作正常,還有'rails s'。該應用在當地正常工作。 – edank