2014-09-05 52 views
-1

當我試圖運行腳本/服務器我得到這個, 我使用同軌RVM,也是我的項目使用database.travis.yml

/home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-2.3.18/lib/active_support/inflector.rb:3:in '<top (required)>': iconv will be deprecated in the future, use String#encode instead. => Booting WEBrick => Rails 2.3.18 application starting on http://0.0.0.0:3000 NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21. /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/rails-2.3.18/lib/initializer.rb:926:in 'read': No such file or directory - /home/abcsoeasy/epz_lts-master/config/database.yml (Errno::ENOENT) from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/rails-2.3.18/lib/initializer.rb:926:in 'database_configuration' from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/rails-2.3.18/lib/initializer.rb:437:in 'initialize_database' from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/rails-2.3.18/lib/initializer.rb:141:in 'process' from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/rails-2.3.18/lib/initializer.rb:113:in 'run' from /home/abcsoeasy/epz_lts-master/config/environment.rb:7:in '<top (required)>' from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in 'require' from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in 'block in require' from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in 'new_constants_in' from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in 'require' from /home/abcsoeasy/.rvm/gems/ruby-1.9.3-p448/gems/rails-2.3.18/lib/commands/server.rb:84:in '<top (required)>' from script/server:3:in 'require' from script/server:3:in '<main>'

請指引我紅寶石 - 腳本/服務器變量Errno :: ENOENT

+0

您使用的舊鋼軌它的例子與新的耙子或其他寶石。 – 2014-09-06 18:49:26

回答

2

看到你仔細錯誤中指出

No such file or directory - /home/abcsoeasy/epz_lts-master/config/database.yml (Errno::ENOENT) 

這意味着你已經錯過了你的database.yml文件,請加database.yml請看看來自this鏈接