deployments 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.md +2 -2
- data/lib/deployments/recipes.rb +12 -9
- data/lib/deployments/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
data/lib/deployments/recipes.rb
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
# Capistrano Recipes for managing delayed_job
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance.load do
|
4
|
-
after 'deploy:migrations'
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
after 'deploy:migrations', 'deployments:push'
|
5
|
+
after 'deploy', 'deployments:push'
|
6
|
+
|
7
|
+
namespace :deployments do
|
8
|
+
task :push do
|
9
|
+
run <<-CMD
|
10
|
+
cd #{current_path}/public && ln -s #{shared_path}/public/version.txt version.txt
|
11
|
+
CMD
|
9
12
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
run <<-CMD
|
14
|
+
cd #{current_path} && rake deployments:push app_env=#{rails_env}
|
15
|
+
CMD
|
16
|
+
end
|
14
17
|
end
|
15
18
|
end
|
16
19
|
|
data/lib/deployments/version.rb
CHANGED