我正在尝试使用Postgres通过Capistrano将我的Rails 5应用程序部署到VPS。然而,它总是失败--给了我一个PG::ConnectionBad: FATAL: password authentication failed for user 'sys_user'。数据库的密码与变量RDS_PASSWORD相同。端口、主机名等也是一样的。
我被难住了。请帮帮忙。
当将Rails 5应用程序部署到Ubunbtu16.04.3(DigitalII.VPS)时,当运行cap production deploy --trace时,我会得到以下错误: Is the server running on host "138.68.6.26/home/deploy/my-app/shared&
/lib/active_record/connection_adapters/postgresql_adapter.rb:655:in `initialize': FATAL: password authenticationfailed for user "luka" (PG::ConnectionBad)这是我的
在使用postgresql 11时,我在rails 5.2.3中遇到了这个问题。FATAL: Peer authentication failed for user "postgres"他们讨论了pg_hba.conf以及如何将方法更改为md5或信任。default: &default encoding: unicode
# For details on connection pooling, see Railsincreas
我已经构建了一个简单的Cap配方(见下文),它通过了deploy:setup和deploy:check,但在assets预编译阶段失败。这个错误看起来像PG错误,但是我已经根据我的database.yml设置手动测试了一个到服务器的连接,它工作得很好。知道这可能是什么吗?deploy.rb
server "50.116.25.145", :web, :app, :db, prim