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

Make docker-compose restart works as expected #12

Open
husseljoo opened this issue May 14, 2024 · 0 comments
Open

Make docker-compose restart works as expected #12

husseljoo opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@husseljoo
Copy link
Owner

Update the command to create the database only if it does not already exist. This can be achieved by checking the existence of the database before attempting to create it.

currently db:create fails on restart.
change will be allong those lines.
if ! bundle exec rails db:version > /dev/null 2>&1; then bundle exec rails db:create; fi && bundle exec rails db:migrate

@husseljoo husseljoo changed the title Make docker-compose restart works as expected Make docker-compose restart work as expected May 14, 2024
@husseljoo husseljoo added the bug Something isn't working label May 14, 2024
@husseljoo husseljoo changed the title Make docker-compose restart work as expected Make docker-compose restart works as expected May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant