deployments 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deployments/recipes.rb +14 -0
- data/lib/deployments/version.rb +1 -1
- metadata +1 -1
data/lib/deployments/recipes.rb
CHANGED
@@ -1,10 +1,24 @@
|
|
1
1
|
# Capistrano Recipes for managing delayed_job
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance.load do
|
4
|
+
after 'deploy:migrations' do
|
5
|
+
logger.info "Run rake deployments:push app_env=#{rails_env} on deploy:migrations"
|
6
|
+
|
7
|
+
sh <<-CMD
|
8
|
+
rake deployments:push app_env=#{rails_env}
|
9
|
+
CMD
|
10
|
+
|
11
|
+
logger.info "Deployments push completed."
|
12
|
+
end
|
13
|
+
|
4
14
|
after 'deploy' do
|
15
|
+
logger.info "Run rake deployments:push app_env=#{rails_env} on deploy"
|
16
|
+
|
5
17
|
sh <<-CMD
|
6
18
|
rake deployments:push app_env=#{rails_env}
|
7
19
|
CMD
|
20
|
+
|
21
|
+
logger.info "Deployments push completed."
|
8
22
|
end
|
9
23
|
end
|
10
24
|
|
data/lib/deployments/version.rb
CHANGED