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

Version Path
underlay-2.0 templates/bin_setup_review_app.erb
suspenders-1.53.0 templates/bin_setup_review_app.erb
welaika-suspenders-2.33 templates/bin_setup_review_app.erb
welaika-suspenders-2.32.2 templates/bin_setup_review_app.erb
welaika-suspenders-2.32.1 templates/bin_setup_review_app.erb
welaika-suspenders-2.32.0 templates/bin_setup_review_app.erb
suspenders-1.52.0 templates/bin_setup_review_app.erb
suspenders-1.51.0 templates/bin_setup_review_app.erb
underlay-1.52.1 templates/bin_setup_review_app.erb
welaika-suspenders-2.31.0 templates/bin_setup_review_app.erb
welaika-suspenders-2.30.0 templates/bin_setup_review_app.erb
bulldozer-1.6.3 templates/bin_setup_review_app.erb
bulldozer-1.6.2 templates/bin_setup_review_app.erb
bulldozer-1.6.1 templates/bin_setup_review_app.erb
bulldozer-1.6.0 templates/bin_setup_review_app.erb
underlay-1.50.1 templates/bin_setup_review_app.erb
suspenders-1.50.0 templates/bin_setup_review_app.erb
suspenders-1.49.0 templates/bin_setup_review_app.erb
welaika-suspenders-2.29.0 templates/bin_setup_review_app.erb
suspenders-1.48.0 templates/bin_setup_review_app.erb