Hello, I have a capistrano deploy that I override a task definition in order to do some custom things, an incomplete example below. My problem is, capistrano doesn't seem to check for errors when this happens. So, in my code that does things like reload nginx, if the config is bad and it can't reload, capistrano continues on like there's no issue. How do I make capistrano pay attention to the exit codes like it normally does?
Rake::Task["deploy:symlink:release"].clear_actions namespace :symlink do desc 'OVERRIIIIIIDE' task :release do on roles(:app), in: :sequence do # Make /up return a 404 execute "touch /tmp/disabled || true" # Give time for ELB to fail health checks execute "sleep 10" # Wait for uWSGI to stop processing stragglers execute "#{release_path}/lib/wait_uwsgi.sh" -- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/cc78c368-c467-489b-a6f9-3d422cfd0c5d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.