Creating the database to contribute to the project
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 :)
Same thing about the secrets.yml.
Can we make it explicit or try to automatize it on bin/setup?
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.cican be copied, it will use sqlite which may be enough for some setups) -
secrets.yml(secrets_ci.ymlcan be copied, thenrake secretcan be run to get keys to replace thesecret_key_baseanddevise_secret_keyplaceholders 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.