Skip to content

ENV Environment Variables

Bradley J Potts edited this page May 1, 2016 · 3 revisions

As of version 2.5 MTDevise has environment variables. Without this it will not work, we have a growing list of variables below with examples.

PHC_MTDEVISE_SENDER

The MTDevise sender variable sets the Sent From field in the mailer sent to users for confirmation, activation and forgotten password links.

The mailer function is set in the Devise config with the code below.

config.mailer_sender = ENV["PHC_MTDEVISE_SENDER"]  

Example of the environment variable.

PHC_MTDEVISE_SENDER = "[email protected]"