Sha256: 57944636544b95e24e97f8f1a1e9c5641a63912209056edd86c0de07d25d61a0
Contents?: true
Size: 558 Bytes
Versions: 10
Compression:
Stored size: 558 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 ps:scale worker=1 --app $APP_NAME heroku restart --app $APP_NAME
Version data entries
10 entries across 10 versions & 2 rubygems