Sha256: 720ea5c6b087f7ab7a22128bd4f664a03dd397632b59cd60800cf2d903c4cb3c
Contents?: true
Size: 633 Bytes
Versions: 16
Compression:
Stored size: 633 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 heroku pg:backups restore \ `heroku pg:backups public-url -a <%= app_name.dasherize %>-staging` \ DATABASE_URL \ --confirm <%= app_name.dasherize %>-staging-pr-$1 \ --app <%= app_name.dasherize %>-staging-pr-$1 heroku run rake db:migrate --exit-code --app <%= app_name.dasherize %>-staging-pr-$1 heroku ps:scale worker=1 --app <%= app_name.dasherize %>-staging-pr-$1 heroku restart --app <%= app_name.dasherize %>-staging-pr-$1
Version data entries
16 entries across 16 versions & 6 rubygems