feedbunch icon indicating copy to clipboard operation
feedbunch copied to clipboard

Creating the database to contribute to the project

Open yogodoshi opened this issue 10 years ago • 2 comments

Hi guys, I cloned the repo but had a problem creating the database with bin/setup because the part of the setup that does it is commented (as the database.yml.sample doesnt exist anymore, I guess).

How should people create the database? I used the database.yml.ci but if this was the intention we could make it clear in the bin/setup :)

yogodoshi avatar Jan 23 '16 18:01 yogodoshi

Same thing about the secrets.yml.

Can we make it explicit or try to automatize it on bin/setup?

yogodoshi avatar Jan 23 '16 18:01 yogodoshi

Actually bin/setup was created automatically by the scripts for the migration to Rails 4.2, and it hasn't been changed since then. It is not useful in its current state.

Currently running the app involves creating by hand some files:

  • datababase.yml (database.yml.ci can be copied, it will use sqlite which may be enough for some setups)
  • secrets.yml (secrets_ci.yml can be copied, then rake secret can be run to get keys to replace the secret_key_base and devise_secret_key placeholders in the production section)

This should absolutely be automated to some extent. Also some wiki pages should be written to help people who want to self-host and prefer using a RDBMS different from sqlite. I will get around to it eventually, but of course PRs are welcome.

amatriain avatar Jan 25 '16 00:01 amatriain