部署ruby应用程序时出错

时间:2015-05-13 00:29:09

标签: ruby-on-rails ruby ubuntu

我尝试在我的服务器中部署我的ruby应用程序,但让我显示我使用1.9.3但我不是,在我的服务器和计算机上唯一的版本是2.2.1,我从来没有提到我的1.9.3应用程序或服务器,有人可以给我一个帮助吗?

我发现:/ var / lib / gems 2个文件夹:1.8和1.9.1我不知道是否与之关系。

DEBUG [f4634e5c]    Your Ruby version is 1.9.3, but your Gemfile specified 2.2.1
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deploy@: bundle exit status: 18
bundle stdout: Your Ruby version is 1.9.3, but your Gemfile specified 2.2.1
bundle stderr: Nothing written

SSHKit::Command::Failed: bundle exit status: 18
bundle stdout: Your Ruby version is 1.9.3, but your Gemfile specified 2.2.1
bundle stderr: Nothing written

Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as deploy@: bundle exit status: 18
bundle stdout: Your Ruby version is 1.9.3, but your Gemfile specified 2.2.1
bundle stderr: Nothing written

RubyGems Environment:
  - RUBYGEMS VERSION: 2.4.6
  - RUBY VERSION: 2.2.1 (2015-02-26 patchlevel 85) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-2.2.1
  - RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-2.2.1/bin
  - SPEC CACHE DIRECTORY: /root/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/local/rvm/gems/ruby-2.2.1
     - /usr/local/rvm/gems/ruby-2.2.1@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /usr/local/rvm/gems/ruby-2.2.1/bin
     - /usr/local/rvm/gems/ruby-2.2.1@global/bin
     - /usr/local/rvm/rubies/ruby-2.2.1/bin
     - /usr/local/sbin
     - /usr/local/bin
     - /usr/sbin
     - /usr/bin
     - /sbin
     - /bin
     - /usr/games
     - /usr/local/games
     - /usr/local/rvm/bin

0 个答案:

没有答案