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

Version Path
suspenders-20230113.0 templates/bin_setup_review_app.erb
suspenders-1.56.1 templates/bin_setup_review_app.erb
suspenders-1.55.1 templates/bin_setup_review_app.erb
suspenders-1.55.0 templates/bin_setup_review_app.erb
suspenders-1.54.1 templates/bin_setup_review_app.erb
suspenders-1.54.0 templates/bin_setup_review_app.erb
welaika-suspenders-3.0 templates/bin_setup_review_app.erb
welaika-suspenders-2.36 templates/bin_setup_review_app.erb
welaika-suspenders-2.35 templates/bin_setup_review_app.erb
welaika-suspenders-2.34 templates/bin_setup_review_app.erb