On Tuesday, 17 November 2015 15:29:39 UTC, matt wrote:
>
> Why not just use an environment variable.  For example, <%= 
>  ENV[‘MY_DB_PASSWORD’] %>.   Then you can export that from your specific 
> environment or fire up your task with the environment var set, ex: 
> `MY_DB_PASSWORD=letsparty rails s`
>
>
I second that - support for environment variables is already built into the 
loader of database.yml 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/acdbef05-3c3d-4e49-9f71-58edc40bbe27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to