Sha256: 35b8dc8dc380c55398397089c2bbdf5294fb66fb4497a104ab0682265672f06e
Contents?: true
Size: 559 Bytes
Versions: 8
Compression:
Stored size: 559 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 URL=`heroku pg:backups public-url -a $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
8 entries across 8 versions & 2 rubygems