Skip to content

Instantly share code, notes, and snippets.

@SophieDeBenedetto
Created October 31, 2018 13:46
Show Gist options
  • Select an option

  • Save SophieDeBenedetto/98a04a09aa630ad224a69be49d51027b to your computer and use it in GitHub Desktop.

Select an option

Save SophieDeBenedetto/98a04a09aa630ad224a69be49d51027b to your computer and use it in GitHub Desktop.
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