ruby - 脚本/服务器Errno :: ENOENT

时间:2014-09-05 10:40:34

标签: ruby-on-rails ruby rvm

当我尝试运行脚本/服务器时,我得到了这个, 我正在使用rvm和rails,我的项目也在使用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>'

请指导我

2 个答案:

答案 0 :(得分:2)

小心地看到你的错误

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

这表示您错过了database.yml文件,请添加database.yml请从this链接

查看示例

答案 1 :(得分:1)

试试这个:

您的应用程序缺少database.yml文件只是创建它。

可能这也有帮助。 Rails database setup on Travis-CI