docbrown/release-tasks.sh

11 lines
335 B
Bash
Executable file

#!/bin/bash
# enable echo mode
set -x
# abort release if deploy status equals "blocked"
[[ $DEPLOY_STATUS = "blocked" ]] && echo "Deploy blocked" && exit 1
# runs migration and boots the app to check there are no errors
STATEMENT_TIMEOUT=180000 bundle exec rails db:migrate && \
bundle exec rails runner "puts 'app load success'"