Created
October 31, 2018 13:46
-
-
Save SophieDeBenedetto/98a04a09aa630ad224a69be49d51027b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| set +e | |
| echo "Preparing to run migrations" | |
| while true; do | |
| nodetool ping | |
| EXIT_CODE=$? | |
| if [ $EXIT_CODE -eq 0 ]; then | |
| echo "Application is up!" | |
| break | |
| fi | |
| done | |
| set -e | |
| echo "Running migrations" | |
| bin/deployer_umbrella rpc "Elixir.Deployer.ReleaseTasks.migrate" | |
| echo "Migrations run successfully" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment