J'ai récemment cloné un dépôt Github et j'essaie de le faire fonctionner sur mon Mac. Je l'ai cloné, j'ai fait une installation groupée et j'ai installé toutes les gemmes. Lorsque j'essaie de faire "rails server", j'obtiens une erreur :
=> Booting Mongrel
=> Rails 3.0.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/application/configuration.rb:86:in `read': No such file or directory - /Users/beatjunkie84/Desktop/Teamly/config/database.yml (Errno::ENOENT)
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/application/configuration.rb:86:in `database_configuration'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activerecord-3.0.1/lib/active_record/railtie.rb:58
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activesupport-3.0.1/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activesupport-3.0.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activesupport-3.0.1/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activerecord-3.0.1/lib/active_record/railtie.rb:57
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/initializable.rb:25:in `instance_exec'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/initializable.rb:25:in `run'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/initializable.rb:50:in `run_initializers'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/initializable.rb:49:in `each'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/initializable.rb:49:in `run_initializers'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/application.rb:134:in `initialize!'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/application.rb:77:in `send'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/railties-3.0.1/lib/rails/application.rb:77:in `method_missing'
from /Users/beatjunkie84/Desktop/Teamly/config/environment.rb:5
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `polyglot_original_require'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `require'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /Users/beatjunkie84/Desktop/Teamly/config.ru:3
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.8.7-p302@rails301/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /Users/beatjunkie84/Desktop/Teamly/config.ru:1:in `new'
from /Users/beatjunkie84/Desktop/Teamly/config.ru:1
Que puis-je faire pour résoudre ce problème ? Je n'ai pas de database.yml, ce qui est le problème. Cependant, le dépôt n'en avait pas non plus lorsque je l'ai cloné. Pourquoi cherche-t-il un fichier qui n'est pas censé être là pour commencer ?