2014-09-05 61 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链接