Ruby on rails 在Heroku Rails 4上设置PostgresQL

Ruby on rails 在Heroku Rails 4上设置PostgresQL,ruby-on-rails,ruby,postgresql,heroku,Ruby On Rails,Ruby,Postgresql,Heroku,我已经有一段时间没有使用postgresql并将应用程序部署到Heroku了,我想我的设置在什么地方出错了 我已经在Heroku上创建了我的应用程序,有一个嗜好开发数据库设置,我运行了Heroku运行rake db:setup来设置我的数据库,但是我想知道在我的database.yml文件中我有错误吗 default: &default adapter: postgresql encoding: unicode # For details on connection pooling, s

我已经有一段时间没有使用postgresql并将应用程序部署到Heroku了,我想我的设置在什么地方出错了

我已经在Heroku上创建了我的应用程序,有一个嗜好开发数据库设置,我运行了Heroku运行rake db:setup来设置我的数据库,但是我想知道在我的database.yml文件中我有错误吗

default: &default
adapter: postgresql
encoding: unicode
# For details on connection pooling, see rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: 5

production:
<<: *default
database: my_app_production
username: my_app
password: <%= ENV['MY_APP_DATABASE_PASSWORD'] %>
我已经使用heroku config:set设置了数据库密码

我错过了什么

谢谢

Heroku忽略了您的database.yml配置,它们会在您部署应用程序时生成一个配置,并负责创建数据库。 您所需要做的就是heroku运行rake db:migrate,也许还有一个heroku运行rake db:seed,以防您需要为数据库设置种子。

heroku忽略您的数据库。yml配置,它们在您部署应用程序时生成一个,并且还负责数据库的创建。
你所需要做的就是heroku运行rake db:migrate,也许还有一个heroku运行rake db:seed,以防你需要为数据库设置种子。

你是否为postgres heroku配置设置了密码:设置我的应用程序数据库\u password='password'是的,我已经这样做了,但为了避免混淆,我会在问题中更新它,谢谢你把你得到的日志放进去。。或者试试这个。你是否为postgres heroku配置设置了密码:设置我的应用程序数据库密码是的,我已经这样做了,但我会在问题中更新,以避免混淆,谢谢你把你得到的日志放进去。。或者试试这个。那么这会让一切变得轻松愉快:-谢谢你,因为我需要等待7分钟才能接受:-那么这会让一切变得轻松愉快:-谢谢你,因为我需要等待7分钟才能接受:
 FATAL:  permission denied for database
 DETAIL:  User does not have   CONNECT privilege.

Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "pool"=>5, "database"=>"databaseName", "username"=>"userName", "password"=>"password", "port"=>5432, "host"=>"hostNamehere"}