Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating the database to contribute to the project #10

Open
yogodoshi opened this issue Jan 23, 2016 · 2 comments
Open

Creating the database to contribute to the project #10

yogodoshi opened this issue Jan 23, 2016 · 2 comments

Comments

@yogodoshi
Copy link
Contributor

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
Copy link
Contributor Author

Same thing about the secrets.yml.

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

@amatriain
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants