Skip to content

Commit 08ca854

Browse files
committed
fixing db:restore
1 parent d20f655 commit 08ca854

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ config/database.yml
2121
/log/*.log
2222
/tmp
2323
InstalledFiles
24-
Procfile.bashir
24+
Procfile.dev
2525
Procfile.test
2626
TODO
2727
_yardoc

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ source 'https://rubygems.org' do
173173
end
174174

175175
group :production do
176-
gem 'puma'
176+
gem 'puma', '>=2.15.3'
177177
gem 'rails_12factor'
178178
gem 'heroku-deflater'
179179
gem 'bugsnag'

Gemfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ GEM
447447
pry (~> 0.10)
448448
pry-rails (0.3.4)
449449
pry (>= 0.9.10)
450-
puma (2.12.0)
450+
puma (2.15.3)
451451
quiet_assets (1.1.0)
452452
railties (>= 3.1, < 5.0)
453453
rack (1.4.7)
@@ -765,7 +765,7 @@ DEPENDENCIES
765765
postgres_ext!
766766
pry-byebug!
767767
pry-rails!
768-
puma!
768+
puma (>= 2.15.3)!
769769
quiet_assets!
770770
rack_session_access!
771771
rails (~> 3.2)!
@@ -809,4 +809,4 @@ DEPENDENCIES
809809
webmock (< 1.16)!
810810

811811
BUNDLED WITH
812-
1.10.6
812+
1.11.2

lib/tasks/db.rake

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ namespace :db do
2525

2626
namespace :download do
2727
def db_dump_file
28-
"/home/vagrant/web/tmp/coderwall-production.dump"
28+
"tmp/coderwall-production.dump"
2929
end
3030

3131
# https://www.mongolab.com/downloadbackup/543ea81670096301db49ddd2
3232

3333
desc 'Create a production database backup'
3434
task :generate do
3535
Bundler.with_clean_env do
36-
cmd = "heroku pgbackups:capture --expire --app coderwall-production"
36+
cmd = "heroku pg:backups capture DATABASE_URL --app coderwall-production"
3737
sh(cmd)
3838
end
3939
end
@@ -42,7 +42,7 @@ namespace :db do
4242
task :latest do
4343
unless File.exists?(db_dump_file)
4444
Bundler.with_clean_env do
45-
sh("curl `heroku pgbackups:url --app coderwall-production` -o #{db_dump_file}")
45+
sh("curl `heroku pg:backups public-url --app coderwall-production` -o #{db_dump_file}")
4646
end
4747
end
4848
end

0 commit comments

Comments
 (0)