heroku_tasks 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +3 -0
- data/lib/heroku_tasks/version.rb +1 -1
- data/lib/tasks/deploy.rake +1 -0
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -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
|
|
data/lib/heroku_tasks/version.rb
CHANGED
data/lib/tasks/deploy.rake
CHANGED
@@ -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:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thibaud Guillaume-Gentil
|