Created
June 25, 2016 04:14
-
-
Save mvargeson/c50a78750da105dff3a796c2fc92253b to your computer and use it in GitHub Desktop.
wait for db container to be available before starting server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bash -c 'while ! </dev/tcp/db/5432; do sleep 1; done; nodal db:bootstrap && nodal s;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment