You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.
# Create a new DB backup, and import it to the local Postgres DB
task :db do
app = ENV["HEROKU_APP"] || "fastlane-refresher"
db_name = ENV["DB_NAME"] || "refresher"
user = ENV["USER"]
puts "This script is going to drop your local database #{db_name} and fetch the database from heroku #{app}. Quit now if that doesn't sound good, or press any key to continue"
STDIN.gets
Bundler.with_clean_env do
sh "heroku pg:backups capture --app #{app}"
sh "curl -o latest.dump `heroku pg:backups public-url --app #{app}`"