This sounds like a good spot for a process monitor. If you’re on ubuntu 14.04 
then the built-in upstart is really easy and handles restarting applications. 
Everything else (including later Ubuntus) is charging towards systemd which has 
a steeper learning curve — totally workable though. Whatever process monitor 
you end up using, see if you can configure it to send emails when a process 
goes down.

Ansible would be the right tool for laying down this process monitoring config.

Good luck!

Xavier

> On Mar 7, 2016, at 10:36 PM, Chris McCann <[email protected]> wrote:
> 
> All,
> 
> We use Ansible to deploy our Rails app onto EC2 servers on Amazon Web 
> Services.  
> 
> An issue with a missing environment variable caused the Rails process to fail 
> on restart but that wasn't communicated through Ansible.  Only after running 
> `bundle exec rails c` on the server did the error become apparent due to a 
> Rails initializer that verifies all required env vars are present.
> 
> Does anyone here have a mechanism in their deployment process that verifies 
> the Rails process restarts cleanly, in particular, via Ansible?
> 
> Cheers,
> 
> Chris
> 
> 
> 
> -- 
> -- 
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby <http://groups.google.com/group/sdruby>
> --- 
> You received this message because you are subscribed to the Google Groups "SD 
> Ruby" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
--- 
You received this message because you are subscribed to the Google Groups "SD 
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to