exercism.io

https://github.com/exercism/exercism.io

Ruby

Quickly ramp up in new programming languages.

#wait_for_db

Because the db container is often started at the same time as its
dependents, a race condition exists whereby the dependents may try
to access the db before it's ready. This function allows us the dependent
to wait until the db is ready before proceeding.

Source | Google | Stack overflow

Edit

git clone [email protected]:exercism/exercism.io.git

cd exercism.io

open docker/entrypoint.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs--wait_for_db-for-pr


# Commit to git

git add docker/entrypoint.rbgit commit -m "better docs for #wait_for_db"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs--wait_for_db-for-pr

hub pull-request


# Celebrate!