heroku_tasks 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,6 +35,7 @@ Push your code to staging heroku app
35
35
 
36
36
  If your staging app is still alive
37
37
 
38
+ git push origin staging
38
39
  git checkout production
39
40
  git pull origin production
40
41
  git merge staging
@@ -55,8 +56,10 @@ Don't forget to remove maintenance page if needed
55
56
 
56
57
  Back to work (after some rest!)
57
58
 
59
+ git push origin production
58
60
  git checkout master
59
61
  git merge production
62
+ git push origin master
60
63
 
61
64
  = Rollback
62
65
 
@@ -1,3 +1,3 @@
1
1
  module HerokuTasks
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -78,6 +78,7 @@ namespace :deploy do
78
78
  timed do
79
79
  puts "\nCopying production database for #{app_and_target} ..."
80
80
  system "heroku db:pull postgres://localhost/#{HerokuTasks.production}_backup --app #{HerokuTasks.production}"
81
+ system "heroku db:reset --app #{HerokuTasks.staging}"
81
82
  system "heroku db:push postgres://localhost/#{HerokuTasks.production}_backup --app #{HerokuTasks.staging}"
82
83
  end
83
84
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_tasks
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thibaud Guillaume-Gentil