Sha256: 4bb01ff9cc5d06a3b80e348b77ae32fb2ef20b42f31a301fe56534f4b80d5184
Contents?: true
Size: 614 Bytes
Versions: 27
Compression:
Stored size: 614 Bytes
Contents
#!/bin/sh # Run this script to set up a review app's database and worker dyno set -e if [ -z "$1" ]; then printf "You must provide a review app (same as the pull request) id.\n" exit 64 fi PARENT_APP_NAME=<%= app_name.dasherize %>-staging APP_NAME=<%= app_name.dasherize %>-staging-pr-$1 heroku pg:backups:capture --app $PARENT_APP_NAME URL=`heroku pg:backups public-url --app $PARENT_APP_NAME` heroku pg:backups restore $URL DATABASE_URL --confirm $APP_NAME --app $APP_NAME heroku run rails db:migrate --exit-code --app $APP_NAME heroku ps:scale worker=1 --app $APP_NAME heroku restart --app $APP_NAME
Version data entries
27 entries across 27 versions & 4 rubygems