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