用户“ ebroot”的密码认证失败弹性豆茎 [英] password authentication failed for user "ebroot" elastic beanstalk
问题描述
我正在尝试使用弹性beantalk将ruby应用程序部署到aws。我进入回购CD,然后 git init
, git add --all
, git commit-是更新
, eb init
, eb create staging3 -db.engine postgres
,修复了一些错误,然后进行了 eb部署
。现在我得到
I am trying to deploy ruby app to aws using elastic beanstalk. I cd into repo, then git init
, git add --all
, git commit -am "update"
, eb init
, eb create staging3 -db.engine postgres
, fixed some error, then eb deploy
. Now I get
FATAL:用户 ebroot的密码身份验证失败
FATAL: password authentication failed for user "ebroot"
我的数据库.yml
adapter: postgresql
host: localhost
username: ggg
database: rtt
production:
adapter: postgresql
encoding: utf8
database: <%= ENV['RDS_DB_NAME'] %>
username: <%= ENV['RDS_USERNAME'] %>
password: <%= ENV['RDS_PASSWORD'] %>
host: <%= ENV['RDS_HOSTNAME'] %>
port: <%= ENV['RDS_PORT'] %>
我的日志 http://pasted.co/6590f3ae
我是菜鸟,此密码与我在创建数据库和创建数据库时创建的密码有任何联系吗?迁移本地。
I am noob, Is this password has any connection with the password I created when database creation and migration locally.
推荐答案
更改密码:<%= ENV [ 'RDS_PASSWORD']%>
到密码:<%= ENV ['RDS_PASSWORD']%>
解决了该问题。你能告诉我为什么会这样吗?
Changing password: <%= ENV['RDS_PASSWORD'] %>
to password: "<%= ENV['RDS_PASSWORD'] %>"
fixes the problem. Can you please tell me why this is like this?
这篇关于用户“ ebroot”的密码认证失败弹性豆茎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!