nesquena-cap-recipes 0.2.6 → 0.2.7
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/Rakefile +1 -1
- data/lib/cap_recipes/tasks/passenger.rb +12 -2
- metadata +1 -1
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ require 'rake/gempackagetask'
|
|
5
5
|
require 'spec/rake/spectask'
|
6
6
|
|
7
7
|
GEM = "cap-recipes"
|
8
|
-
GEM_VERSION = "0.2.
|
8
|
+
GEM_VERSION = "0.2.7"
|
9
9
|
SUMMARY = "Collection of capistrano recipes for apache, passenger, memcache, juggernaut and backgroundrb"
|
10
10
|
AUTHOR = "Nathan Esquenazi"
|
11
11
|
EMAIL = "nesquena@gmail.com"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'cap_recipes/tasks/with_scope.rb'
|
2
|
+
|
1
3
|
Capistrano::Configuration.instance(true).load do
|
2
4
|
set :base_ruby_path, '/usr'
|
3
5
|
|
@@ -6,6 +8,14 @@ Capistrano::Configuration.instance(true).load do
|
|
6
8
|
# ===============================================================
|
7
9
|
|
8
10
|
namespace :deploy do
|
11
|
+
|
12
|
+
desc "Default deploy action"
|
13
|
+
task :default, :roles => :web do
|
14
|
+
with_role(:web) do
|
15
|
+
update
|
16
|
+
restart
|
17
|
+
end
|
18
|
+
end
|
9
19
|
|
10
20
|
# ===============================================================
|
11
21
|
# SERVER MANAGEMENT
|
@@ -117,9 +127,9 @@ Capistrano::Configuration.instance(true).load do
|
|
117
127
|
# ===============================================================
|
118
128
|
# MAINTENANCE TASKS
|
119
129
|
# ===============================================================
|
120
|
-
namespace :sweep
|
130
|
+
namespace :sweep do
|
121
131
|
desc "Clear file-based fragment and action caching"
|
122
|
-
task :log, :roles => :
|
132
|
+
task :log, :roles => :web do
|
123
133
|
puts "Sweeping all the log files"
|
124
134
|
run "cd #{current_path} && #{sudo} rake log:clear RAILS_ENV=production"
|
125
135
|
end
|