This is my first time deploying an application in the digital ocean and is facing two (maybe more) problems.
1) I cannot bundle install after adding gem 'unicorn' to the Gemfile. I found that kgio is not compatible with windows. Should I have Gemfile.lock when deploying via capistrano? How do I solve this problem?
group :production do gem 'pg', '0.14.1' gem "nginx" gem 'unicorn' end
2) I am having problems with authentication on postgresql on the server.
production: adapter: postgresql encoding: unicode database: postgresql pool: 5 username: postgresql password: secret
I executed these commands (along with some other options):
create user postgresql with password 'secret'; create database postgresql with owner postgresql;
Every time I close the deployment, I get this error:
FATAL: Peer authentication failed for user "postgresql"
I tried to put an invalid username that I know does not exist, an invalid database, but the error message is always the same. According to postgresql website, I should get different errors for those who ...
If I can get any help, it will be awesome. Thanks!
source share