If you use the ENV.fetch("VAR_NAME...") syntax it will raise an exception
if the key is missing rather than silently failing when using the
ENV["VAR_NAME...") syntax. Were you already using this syntax? If not,
maybe the exception proper will trigger an alert for you...?On Mon, 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 > --- > 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. > -- -- 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.
