It looks it did, but my app still is not connecting. Looks like I'm missing something.
I created the database with: > *rake db:create RAILS_ENV=production* But when I try to run the app, production.log gives me the error: *PG Peer authentication failed for user "myusername" * I've tried to add host:localhost to my config/database.yml, and now it gives me this error: > *PG::ConnectionBad (fe_sendauth: no password supplied* 2015-06-01 16:02 GMT-03:00 Colin Law <[email protected]>: > On 1 June 2015 at 19:54, Leandro França <[email protected]> > 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 [email protected]. > To post to this group, send email to [email protected]. > 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. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAAt6bOoYuwvuGCTkxqcyT1PADcLiTjZfZ-Je67gakh7ykFz5Xg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

