Sha256: 014881b836c54389c6e03be84a5f98279d7af1daeabef049a3c96e20249bbd3a
Contents?: true
Size: 620 Bytes
Versions: 4
Compression:
Stored size: 620 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 --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
4 entries across 4 versions & 1 rubygems