Sha256: 1b39361203eea58ec6f8529a7339e67bfffb20830caedd23c2553b3e76a499ce
Contents?: true
Size: 613 Bytes
Versions: 9
Compression:
Stored size: 613 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 rake db:migrate --exit-code --app $APP_NAME heroku ps:scale worker=1 --app $APP_NAME heroku restart --app $APP_NAME
Version data entries
9 entries across 9 versions & 2 rubygems