Skip to content

Instantly share code, notes, and snippets.

@mvargeson
Created June 25, 2016 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mvargeson/c50a78750da105dff3a796c2fc92253b to your computer and use it in GitHub Desktop.
Save mvargeson/c50a78750da105dff3a796c2fc92253b to your computer and use it in GitHub Desktop.
wait for db container to be available before starting server
#!/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