當我試圖運行腳本/服務器我得到這個, 我使用同軌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
-1
A
回答
2
看到你仔細錯誤中指出
No such file or directory - /home/abcsoeasy/epz_lts-master/config/database.yml (Errno::ENOENT)
這意味着你已經錯過了你的database.yml
文件,請加database.yml
請看看來自this鏈接
1
+0
像任何事情一樣工作! – abcsoeasy 2014-09-06 11:15:08
相關問題
- 1. 變量Errno :: ENOENT:沒有這樣的文件或目錄紅寶石
- 2. 服務器紅寶石
- 3. 紅寶石腳本/導軌服務器失敗
- 4. 紅寶石腳本/服務器不讀RAILS_ENV選項
- 5. '部署'寶石紅寶石腳本
- 6. 寶石cmd從紅寶石腳本
- 7. Shell腳本>紅寶石
- 8. bash腳本紅寶石
- 9. 紅寶石腳本錯誤
- 10. 紅寶石。變量權限
- 11. 紅寶石會話變量
- 12. 紅寶石變量澄清
- 13. 紅寶石範圍變量
- 14. 紅寶石,連接到SQL服務器
- 15. 紅寶石IRC服務器/客戶端
- 16. 測試紅寶石TCPSocket服務器
- 17. 紅寶石..出口到服務器?
- 18. CGI在紅寶石sinatra服務器
- 19. 錯誤運行紅寶石服務器
- 20. Errno :: ENOENT Rails 3.1.1
- 21. 獨立紅寶石腳本中的紅寶石
- 22. 將紅寶石從紅寶石傳遞給bash腳本?
- 23. 紅寶石服務器沒有提供寶石?
- 24. 紅寶石,與File.new
- 25. 紅寶石file.foreach
- 26. 紅寶石google_drive寶石oAuth2保存
- 27. 變量改變值,紅寶石
- 28. 轉換JavaScript變數紅寶石變量
- 29. 紅寶石$:不印字「..」
- 30. jruby gem安裝錯誤或任何寶石:「錯誤:執行寶石時...(Errno :: ENOENT)」
您使用的舊鋼軌它的例子與新的耙子或其他寶石。 – 2014-09-06 18:49:26