I am deploying an app to digital ocean for the first time and ran into two (possible more) issues.
1) I can't bundle install
after adding gem 'unicorn'
to Gemfile. I found that kgio is not compatible with windows. Do I have to have Gemfile.lock present when I deploy via capistrano? How would I work around this issue?
group :production do
gem 'pg', '0.14.1'
gem "nginx"
gem 'unicorn'
end
2) I am having trouble with authentication on postgresql on the server.
production:
adapter: postgresql
encoding: unicode
database: postgresql
pool: 5
username: postgresql
password: secret
I ran these commands (along with some other variations):
create user postgresql with password 'secret';
create database postgresql with owner postgresql;
Every time I cap deploy, I get this error:
FATAL: Peer authentication failed for user "postgresql"
I tried putting an invalid username that I know doesn't exist, a database that is invalid but the error message is always the same. According to postgresql website, I should be getting different errors for those...
If I can get some help, that'd be amazing. Thank you!