-
-
Save hex337/9ed48e773262d8f6e69c5ad2b7d19e06 to your computer and use it in GitHub Desktop.
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 | |
# fail if we error out | |
set -e | |
# Wait for database to come up | |
until psql -h db -U "postgres" -c '\q' 2>/dev/null; do | |
>&2 echo "Postgres is unavailable - sleeping" | |
sleep 1 | |
done | |
# Ensure we have the basics... | |
mix local.hex --force | |
mix local.rebar --force | |
mix phx.server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment