cap-recipes 0.3.28 → 0.3.29
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.textile +1 -1
- data/VERSION.yml +1 -1
- data/cap-recipes.gemspec +1 -1
- data/lib/cap_recipes/tasks/delayed_job/manage.rb +2 -2
- metadata +1 -1
data/README.textile
CHANGED
@@ -181,7 +181,7 @@ These recipes are for tobi's delayed_job plugin for background job queue process
|
|
181
181
|
|
182
182
|
h4. Configuration
|
183
183
|
|
184
|
-
* delayed_script_path - the path to the delayed job script [default: 'script/delayed_job']
|
184
|
+
* delayed_script_path - the path to the delayed job script [default: '#{current_path}/script/delayed_job']
|
185
185
|
* delayed_job_env - the rails environment [default: 'production']
|
186
186
|
|
187
187
|
h4. Tasks
|
data/VERSION.yml
CHANGED
data/cap-recipes.gemspec
CHANGED
@@ -10,14 +10,14 @@ Capistrano::Configuration.instance(true).load do
|
|
10
10
|
desc "Start delayed_job process"
|
11
11
|
task :start, :roles => delayed_job_role do
|
12
12
|
utilities.with_role(delayed_job_role) do
|
13
|
-
try_sudo "#{base_ruby_path}/bin/ruby #{delayed_script_path} start
|
13
|
+
try_sudo "RAILS_ENV=#{delayed_job_env} #{base_ruby_path}/bin/ruby #{delayed_script_path} start"
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
17
|
desc "Stop delayed_job process"
|
18
18
|
task :stop, :roles => delayed_job_role do
|
19
19
|
utilities.with_role(delayed_job_role) do
|
20
|
-
try_sudo "#{base_ruby_path}/bin/ruby #{delayed_script_path} stop
|
20
|
+
try_sudo "RAILS_ENV=#{delayed_job_env} #{base_ruby_path}/bin/ruby #{delayed_script_path} stop"
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|