On 1 June 2015 at 19:54, Leandro França <leandroayresfranca@gmail.com> wrote:
> Hi there,
>
> What is a good way to setup connection to production database?
> Do I really need to keep production password on database.yml file? Are there
> any other ways?
In database.yml use something like
password: <%= ENV['MY_DATABASE_PASSWORD'] %>
and externally setup an environment variable MY_DATABASE_PASSWORD
I believe that is what
rails new ...
generates automatically. Did it not for you?
Colin
--
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/CAL%3D0gLsZOyGNzao2n5qHqLiqSoVJEcj1E_mG79xgfewPrWHdKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment