I'm not seeing anything here that does anything that can return an exit status other than 0 (not knowing what `wait_uwsgi.sh` does).
In principle if an `execute()` exits with a non-zero status, it'll raise - see the docs around the `test()` function, it's analog which tolerates errors https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#make-a-test-or-run-a-command-which-may-fail-without-raising-an-error Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 31 May 2016 at 14:14, Will Platnick <[email protected]> wrote: > 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 [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/capistrano/cc78c368-c467-489b-a6f9-3d422cfd0c5d%40googlegroups.com > <https://groups.google.com/d/msgid/capistrano/cc78c368-c467-489b-a6f9-3d422cfd0c5d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/CAN_%2BVLUjDtn3%3D7R4vELLEk3gK0aGsLHgBzoBbhB-RCnaxWdPng%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
