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

added few helper scripts #112

Closed
wants to merge 1 commit into from
Closed

added few helper scripts #112

wants to merge 1 commit into from

Conversation

henrikac
Copy link

This PR adds a few bash scripts that abstracts away a lot of the long docker compose commands, e.g.:

Now, if you want to reset the database, you'll have to write up to three different docker compose commands

  • docker compose stop web
  • docker compose run web bundle exec rake db:reset
  • docker compose start web

but with the new db script you just have to run ./db reset.

The scripts also checks whether docker compose is available, otherwise docker-compose will be used.

New scripts

  • psql => docker compose exec db psql -U postgres ConfBuddies_development
  • rails-c => docker compose run --rm web bin/rails c
  • rspec => docker compose run --rm web bundle exec rspec
  • rubocop => docker compose run --rm web bundle exec rubocop
  • db => This script comes with three commands; setup, migrate and reset. (./db <command>)

@ChaelCodes ChaelCodes added the hacktoberfest-accepted Accepted for Hacktoberfest label Oct 25, 2021
@ChaelCodes ChaelCodes added this to the Hacktoberfest 2021 milestone Nov 1, 2021
@henrikac henrikac closed this by deleting the head repository Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Accepted for Hacktoberfest hacktoberfest-approved IDK IF IT'S APPROVED OR ACCEPTED.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants