2017-09-07 1 views
3

최근 레일 프로젝트에서 루비 작업을 시작했습니다. 아주 오래된 프로젝트입니다. 나는이 기술의 초보자이다. 나를 안내 해줘. 내 Gemfilebundle install을 수행 한 후 지금Ruby 설정에서 RUBY_ENV 변수를 할당 할 수 없습니다.

source 'https://rubygems.org' 

gem 'rails', '3.2.17' 
gem 'xmlrpc' 
# Bundle edge Rails instead: 
# gem 'rails', :git => 'git://github.com/rails/rails.git' 

#gem 'mysql2', '0.3.11' 
gem 'maxminddb', '~> 0.1.8' 
gem 'rake', '10.1.0' 
gem 'mysql', '2.9.1' 
gem 'domainatrix', '0.0.11' 
gem 'addressable', '2.3.5' 
gem 'guid', '0.1.1' 
gem 'json' 
gem 'ystock', '0.4.5' 
gem 'httparty', '0.10.2' 
gem 'fastercsv', '1.5.5' 
#gem 'fog', '1.18.0' 
gem 'aws-s3', '0.6.3', :require => 'aws/s3' 
gem 'builder', '3.0.4' 
gem 'mime-types', '1.25' 
gem 'xml-simple', '1.1.2' 
# gem 'newrelic_rpm', '3.7.3.199' 
gem 'newrelic_rpm', '~> 3.15', '>= 3.15.0.314' 
gem 'redis', '3.0.6' 
gem 'redis-store', '1.1.4' 
gem 'redis-rails', '3.2.4' 
gem 'dalli', '2.6.4' 
gem 'rack-uri_sanitizer' 

gem 'whenever', :require => false 

# Gems used only for assets and not required 
# in production environments by default. 
group :assets do 
gem 'sass-rails' 
gem 'coffee-rails' 

# See https://github.com/sstephenson/execjs#readme for more supported   
runtimes 
# gem 'therubyracer', :platforms => :ruby 

gem 'uglifier' 
end 

gem 'jquery-rails' 
gem 'unf' 

group :development do 
gem 'ruby-prof' 
gem 'thin', '1.3.1' 

#pimp out your dev environment if these cause you issues you can  
comment them out. 
gem 'annotate' 
gem 'quiet_assets' 
#gem 'better_errors' 
gem 'binding_of_caller' 
gem 'letters' 
gem 'meta_request' # for RailsPanel: 
https://github.com/dejan/rails_panel 

# let guard listen for file changes on linux, mac, and windows 
gem 'rb-inotify', :require => false 
gem 'rb-fsevent', :require => false 
gem 'rb-fchange', :require => false 

# Get growl notifications from Guard 
# Be sure to turn on Network to "Listen for incoming notifications" 
# Growl (Mac): http://growl.info/ 
# Growl for Windows: http://www.growlforwindows.com/gfw/ 
# Growl for Linux: http://mattn.github.com/growl-for-linux/ 
#gem 'ruby_gntp' if guard_notifications 

gem 'guard' 
gem 'guard-bundler' 
gem 'guard-cucumber' 
gem 'guard-rspec' 
# gem 'guard-unicorn' 
gem 'guard-livereload' 
gem 'rack-livereload' 

gem 'term-ansicolor' 
gem 'pry-rails' #saves history in your rails console 
gem 'rails-erd' 
end 
# Deploy with Capistrano 
gem 'rvm-capistrano' 
gem 'capistrano', '~>2.15.4' 
gem 'tinder', '1.9.4' 
gem 'chef' 
gem 'knife-ec2' 
gem 'capistrano-chef' 


group :staging do 
gem 'ruby-prof' 
end 

# To use ActiveModel has_secure_password 
# gem 'bcrypt-ruby', '~> 3.0.0' 

# To use Jbuilder templates for JSON 
# gem 'jbuilder' 

# Use unicorn as the app server 
# gem 'unicorn' 

# Deploy with Capistrano 
# gem 'capistrano' 

# To use debugger 
# gem 'debugger' 
gem 'ruby-xxHash', '~> 0.3.0' 

이 포함되어 있습니다. 내가 루비 1.9.3의 아주 오래된 버전을 사용하고

rake aborted! 
Please require this file from within a Capistrano recipe 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-   
2.15.9/lib/capistrano/configuration/loading.rb:18:in `instance' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/rvm-capistrano-  
1.5.6/lib/rvm/capistrano/helpers/base.rb:16:in `rvm_with_capistrano' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/rvm-capistrano- 
1.5.6/lib/rvm/capistrano/helpers/_cset.rb:3:in `<top (required)>' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/rvm-capistrano- 
1.5.6/lib/rvm/capistrano/base.rb:1:in `require' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/rvm-capistrano- 
1.5.6/lib/rvm/capistrano/base.rb:1:in `<top (required)>' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/rvm-capistrano- 
1.5.6/lib/rvm/capistrano/selector.rb:1:in `require' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/rvm-capistrano- 
1.5.6/lib/rvm/capistrano/selector.rb:1:in `<top (required)>' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/rvm-capistrano- 
1.5.6/lib/rvm/capistrano.rb:3:in `require' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/rvm-capistrano- 
1.5.6/lib/rvm/capistrano.rb:3:in `<top (required)>' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/bundler- 
1.15.4/lib/bundler/runtime.rb:96:in `require' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/bundler- 
1.15.4/lib/bundler/runtime.rb:96:in `rescue in block in require' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/bundler- 
1.15.4/lib/bundler/runtime.rb:73:in `block in require' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/bundler- 
1.15.4/lib/bundler/runtime.rb:66:in `each' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/bundler- 
1.15.4/lib/bundler/runtime.rb:66:in `require' 
/Users/sireesha/.rvm/gems/ruby-1.9.3-p551/gems/bundler- 
1.15.4/lib/bundler.rb:108:in `require' 
/Users/sireesha/Desktop/config/application.rb:8:in `<top 
(required)>' 
/Users/sireesha/Desktop/Rakefile:5:in `require' 
/Users/sireesha/Desktop/Rakefile:5:in `<top (required)>' 
/Users/sireesha/.rvm/gems/ruby-1.9.3- 
p551/bin/ruby_executable_hooks:15:in `eval' 
/Users/sireesha/.rvm/gems/ruby-1.9.3- 
p551/bin/ruby_executable_hooks:15:in `<main>' 
(See full trace by running task with --trace) 

내가 같은 오류가 발생하고,

RAILS_ENV=development bundle exec rake cache:generate 

을하려고하지만하고있다. 그러나 업그레이드 할 수있는 선택권이 없습니다. 그렇다면이 문제를 해결할 수있는 방법이 있습니까? 나를 안내 해줘. 내가 처음 본 것은 ruby입니다. 고맙습니다.

+0

[Capistrano 레시피 (LoadError)에서이 파일을 요구하십시오.] (https://stackoverflow.com/questions/28461965/please-require-this-file-from-within-a-capistrano-recipe) -loaderror) –

답변

0

는 그룹 당신의 보석 배포 (및로드!) 개발 & 테스트 라이브러리를 프로덕션 환경에하지 않는해야 있도록, 또한 Please require this file from within a Capistrano recipe (LoadError)

참조하십시오.

예 : 카피스트라노 & 가드와 관련된 모든 것은 group :development 블록에 있어야합니다.

관련 문제