mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.35k stars 490 forks source link

Add hint about creating `shared/database.yml` in README #503

Closed jmuheim closed 7 years ago

jmuheim commented 7 years ago

I followed the guide in https://github.com/mina-deploy/mina/blob/master/docs/getting_started.md step by step.

When the migration starts, and I get this:

-----> Migrating database
       $ RAILS_ENV="production" bundle exec rake db:migrate
       rake aborted!
       Cannot load `Rails.application.database_configuration`:
       Could not load database configuration. No such file - ["config/database.yml"]

Doesn't really surprise me, as I wasn't told to create one before, and the file isn't committed to git (for good reason).

When I created the file manually, it worked fine.

So maybe you should add a note about this in the getting started document?

d4be4st commented 7 years ago

Will update the documentation!

sanotronics commented 5 years ago

Hello @jmuheim!

I am having this exact same issue, could you please share with me what the solution is?

Thanks!