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

Avoid "config/database.yml first" problem #51

Closed
imaia opened this issue Dec 26, 2016 · 1 comment
Closed

Avoid "config/database.yml first" problem #51

imaia opened this issue Dec 26, 2016 · 1 comment

Comments

@imaia
Copy link

imaia commented Dec 26, 2016

How to avoid the:
"Please configure your config/database.yml first"

When "running" commands with the official redmine container?

@yosifkit
Copy link
Member

What commands are you running and how are you running them?

As long as you are only setting the CMD, and using rails, rake, or passenger, then the entrypoint script will configure the database.yml for you based on the environment.

So, something like docker run -it --rm -v /path/to/my/files:/usr/src/redmine/files -e REDMINE_DB_MYSQL=mysql -e ... redmine:3.3 rake db:migrate should work.

@tianon tianon closed this as completed Apr 24, 2018
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

3 participants