I am trying to run
bundle exec rake assets:precompile RAILS_ENV=production
And have this output:
rake aborted! PG::Error: FATAL: Peer authentication failed for user "discourse"
After that goes a stack trace.
What can I do wrong? Or at least, what is this “discourse” user, where are it’s credentials and how those are used in the precompile?
I am running it on Ubuntu 13.10, with rvm instead of rbenv without vagrant. Running
rails s seems to work fine, specs show several fails considering something about absolute urls and avatars. I used rails console to make my accaunt admin.