Ruby on Rails
Wednesday, November 18, 2015
On Tuesday, November 17, 2015 at 4:29:39 PM UTC+1, 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`
Hi Matt,
thanks for your advice. Maybe this is an alternative in this case, but I would like to know how to tackle this for custom functions in general.
I found out that if I copy the function to config/application, rake finds it. If it is the proper solution for yml-helper functions I don't know. Maybe someone has advice on this.
Ruud
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+unsubscribe@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/a4d7607a-c274-4ae0-85cd-acc99c2aadd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment