0
我在Cloud9 Ubuntu模板,我安裝了postgres。當我嘗試執行「rake db:migrate」時出現錯誤。耙子中止:PG :: ConnectionBad:fe_sendauth:沒有提供密碼
rake aborted:PG::ConnectionBad: fe_sendauth: no password supplied
相關設置,在我的database.yml文件
default: &default
adapter: postgresql
encoding: unicode
pool: 5
username: <%= ENV['USERNAME'] %>
password: <%= ENV['PASSWORD'] %>
host: <%= ENV['IP'] %>
development:
<<: *default
database: app_development
你確定ENV ['USERNAME']和ENV ['PASSWORD']是否被設置? –