0
存在對Capistrano的下面的代碼部署:如何在通過Capistrano部署後執行「命令行」實用程序?
namespace :deploy do
desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
# Your restart mechanism here, for example:
execute :mkdir, '-p', "#{ release_path }/tmp"
execute :touch, release_path.join('tmp/restart.txt')
end
end
after :publishing, :restart
after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 10 do
# Here we can do anything such as:
# within release_path do
# execute :rake, 'cache:clear'
# end
end
end
end
我需要部署後執行「捆綁EXEC sidekiq -d」命令。我如何正確地做到這一點?提前致謝!
大概[this](https://github.com/seuros/capistrano-sidekiq)可以幫助你! – GeekRiky 2015-03-13 06:46:37