I am trying to connect my Sinatra app to PostgreSQL database with this tutorial: http://samuelstern.wordpress.com/2012/11/28/making-a-simple-database-driven-website-with-sinatra-and-heroku/. Everything goes fine until I try to execute:
rake:db migrate
then I get this error:
rake aborted!
PG::ConnectionBad: fe_sendauth: no password supplied
It seems like I should change my permissions in pg_hba.conf file, but, opening it, I see nothing. And, if I try to write something into it, it says it's "readonly".
Am I on the right way of getting rid of the error and where to go next?
edit: actually, if I try to open it from another text editor, it says I have no permission to.