deploy_tasks 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deploy_tasks.rb +1 -1
- data/lib/tasks/heroku.rake +7 -0
- metadata +5 -5
data/lib/deploy_tasks.rb
CHANGED
data/lib/tasks/heroku.rake
CHANGED
@@ -12,6 +12,7 @@ namespace :deploy do
|
|
12
12
|
|
13
13
|
push_to('staging')
|
14
14
|
migrate_database_of_app("#{RAILS_APP}-staging")
|
15
|
+
restart_app("#{RAILS_APP}-staging")
|
15
16
|
open_app("#{RAILS_APP}-staging")
|
16
17
|
end
|
17
18
|
|
@@ -43,6 +44,7 @@ namespace :deploy do
|
|
43
44
|
|
44
45
|
push_to('production')
|
45
46
|
migrate_database_of_app(RAILS_APP)
|
47
|
+
restart_app(RAILS_APP)
|
46
48
|
open_app(RAILS_APP)
|
47
49
|
end
|
48
50
|
end
|
@@ -111,6 +113,11 @@ namespace :deploy do
|
|
111
113
|
message "Migrate the database of #{heroku_app}.."
|
112
114
|
`cd #{Rails.root} && heroku rake db:migrate --app #{heroku_app}`
|
113
115
|
end
|
116
|
+
|
117
|
+
def restart_app(heroku_app)
|
118
|
+
message "Restart the app #{heroku_app}.."
|
119
|
+
`cd #{Rails.root} && heroku restart --app #{heroku_app}`
|
120
|
+
end
|
114
121
|
|
115
122
|
def open_app(heroku_app)
|
116
123
|
message 'Opening heroku app..'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
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
|
- Thomas Maurer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-07 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements: []
|
79
79
|
|
80
80
|
rubyforge_project: deploy_tasks
|
81
|
-
rubygems_version: 1.
|
81
|
+
rubygems_version: 1.7.2
|
82
82
|
signing_key:
|
83
83
|
specification_version: 3
|
84
84
|
summary: Common deploy tasks
|