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

Version Path
welaika-suspenders-2.27.0 templates/bin_setup_review_app.erb
voyage-1.44.0.14 templates/bin_setup_review_app.erb
welaika-suspenders-2.26.0 templates/bin_setup_review_app.erb
voyage-1.44.0.13 templates/bin_setup_review_app.erb
voyage-1.44.0.11 templates/bin_setup_review_app.erb
voyage-1.44.0.12 templates/bin_setup_review_app.erb
voyage-1.44.0.10 templates/bin_setup_review_app.erb
voyage-1.44.0.9 templates/bin_setup_review_app.erb
voyage-1.44.0.8 templates/bin_setup_review_app.erb