简体   繁体   English

Ruby on rails thin gem - 本地服务器db错误

[英]Ruby on rails thin gem - local server db error

When I run rails s on cmd(windows) I got this error below... Can anyone hack this error? 当我在cmd(windows)上运行rails时,我在下面遇到此错误...任何人都可以破解此错误吗? I'm using thin gem for local dev environment. 我正在为本地开发环境使用瘦宝石。 What do I need to chage? 我需要什么来变化?

C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/application/config
uration.rb:115:in `read': No such file or directory - C:/Sites/project/config/da
tabase.yml (Errno::ENOENT)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/appli
cation/configuration.rb:115:in `database_configuration'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_
record/railtie.rb:78:in `block (2 levels) in <class:Railtie>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/comma
nds.rb:50:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>' 

Yes, the file C:/Sites/project/config/database.yml doesn't exist. 是的,文件C:/Sites/project/config/database.yml不存在。 Either move your database.yml to that location, or find the code that expects database.yml to be in that location and change it to point to where the file actually is. database.yml移动到该位置,或者找到期望database.yml位于该位置的代码,并将其更改为指向文件实际所在的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM