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.
Edit
git clone [email protected]:exercism/exercism.io.git
cd exercism.io
open docker/entrypoint.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs--wait_for_db-for-pr
# Commit to gitgit add docker/entrypoint.rbgit commit -m "better docs for #wait_for_db"
# Open pull requestgem 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!