xgamerx-cap-recipes 0.0.5 → 0.0.6
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.
@@ -2,7 +2,7 @@ require 'yaml'
|
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance(true).load do
|
4
4
|
set :backgroundrb_host, 'localhost'
|
5
|
-
set :backgroundrb_env, 'production'
|
5
|
+
set :backgroundrb_env , 'production'
|
6
6
|
|
7
7
|
namespace :backgroundrb do
|
8
8
|
# ===============================================================
|
@@ -11,7 +11,7 @@ Capistrano::Configuration.instance(true).load do
|
|
11
11
|
|
12
12
|
desc "Stops the backgroundrb worker processes"
|
13
13
|
task :stop, :role => :app do
|
14
|
-
run "cd #{current_path} && ruby script/backgroundrb stop -e #{backgroundrb_env}"
|
14
|
+
run "cd #{current_path} && #{sudo} ruby script/backgroundrb stop -e #{backgroundrb_env}"
|
15
15
|
end
|
16
16
|
|
17
17
|
desc "Starts the backgroundrb worker processes"
|
@@ -63,5 +63,5 @@ Capistrano::Configuration.instance(true).load do
|
|
63
63
|
# ===============================================================
|
64
64
|
|
65
65
|
after "deploy:update_code", "backgroundrb:copy_config"
|
66
|
-
after "deploy:restart", "backgroundrb:restart"
|
66
|
+
after "deploy:restart" , "backgroundrb:restart"
|
67
67
|
end
|
@@ -73,13 +73,13 @@ Capistrano::Configuration.instance(true).load do
|
|
73
73
|
desc "Clear file-based fragment and action caching"
|
74
74
|
task :log, :role => :app do
|
75
75
|
puts "Sweeping all the log files"
|
76
|
-
run "cd #{current_path} && sudo rake log:clear RAILS_ENV=production"
|
76
|
+
run "cd #{current_path} && #{sudo} rake log:clear RAILS_ENV=production"
|
77
77
|
end
|
78
78
|
|
79
79
|
desc "Clear file-based fragment and action caching"
|
80
80
|
task :cache, :role => :app do
|
81
81
|
puts "Sweeping the fragment and action cache stores"
|
82
|
-
run "cd #{current_path} && rake tmp:cache:clear RAILS_ENV=production"
|
82
|
+
run "cd #{current_path} && #{sudo} rake tmp:cache:clear RAILS_ENV=production"
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
data/lib/cap_recipes/version.rb
CHANGED