我是第一次将应用程序部署到数字海洋并遇到两个(可能更多)问题.
1)bundle install添加gem 'unicorn'到Gemfile 后我不能.我发现kgio与windows不兼容.通过capistrano部署时,是否必须存在Gemfile.lock?我将如何解决这个问题?
group :production do
gem 'pg', '0.14.1'
gem "nginx"
gem 'unicorn'
end
Run Code Online (Sandbox Code Playgroud)
2)我在服务器上的postgresql上进行身份验证时遇到问题.
production:
adapter: postgresql
encoding: unicode
database: postgresql
pool: 5
username: postgresql
password: secret
Run Code Online (Sandbox Code Playgroud)
我运行了这些命令(以及其他一些变体):
create user postgresql with password 'secret';
create database postgresql with owner postgresql;
Run Code Online (Sandbox Code Playgroud)
我每次上限部署时都会收到此错误:
FATAL: Peer authentication failed for user "postgresql"
Run Code Online (Sandbox Code Playgroud)
我尝试使用我知道不存在的无效用户名,数据库无效但错误消息始终相同.根据postgresql网站,我应该得到不同的错误...
如果我能得到一些帮助,那就太棒了.谢谢!