Created
March 18, 2019 03:25
-
-
Save sgyyz/bf362dfb208019f179bbebcc54d0d5c5 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
#!/usr/bin/env bash | |
### Comment below block if it's a command ### | |
set +e | |
while true; do | |
nodetool ping | |
EXIT_CODE=$? | |
if [[ ${EXIT_CODE} -eq 0 ]]; then | |
echo "Application is up!" | |
break | |
fi | |
done | |
set -e | |
### Comment below block if it's a command ### | |
echo "Running migrations" | |
bin/dockerize_elixir command Elixir.Release.Tasks migrate | |
echo "Migrations run successfully" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment