Answer the question
In order to leave comments, you need to log in
How to run a rake task through capistrano?
it works in development, I run it from the project folder:
rake resque:work QUEUE=*, now the same thing is only in production, on the server via capistrano
namespace :processes do
desc 'Запуск rake resque:work QUEUE=*'
task :resque do
on roles :all do
within release_path do
execute :rake, "resque:work QUEUE=*"
end
end
end
end
Command: cd /var/www/myproject/releases/2015xxxx && /usr/bin/env rake resque:work QUEUE=*
/usr/bin/env:
rake
:Нет такого файла или каталога
Answer the question
In order to leave comments, you need to log in
This won't help you, will it? https://github.com/sshingler/capistrano-resque
About execute: you need to pull rake via bundle exec, I think. Have a look at this: https://github.com/capistrano/bundler/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question