Ruby on rails Heroku数据库设置

Ruby on rails Heroku数据库设置,ruby-on-rails,postgresql,heroku,Ruby On Rails,Postgresql,Heroku,我在heroku run rake db中面临以下问题:创建 在RubyonRails技术和Postgresql数据库中的应用 This is the legacy Heroku CLI. Please install the new CLI from https://cli.heroku.com Running rake db:create on ⬢ project-name... up, run.2367 (Free) FATAL: permission denied for databa

我在heroku run rake db中面临以下问题:创建

在RubyonRails技术和Postgresql数据库中的应用

This is the legacy Heroku CLI. Please install the new CLI from https://cli.heroku.com
Running rake db:create on ⬢ project-name... up, run.2367 (Free)
FATAL:  permission denied for database "postgres"
DETAIL:  User does not have CONNECT privilege.
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "pool"=>5, "database"=>"abcdabcd", "username"=>"abcdabcd", "password"=>"abcdabcd", "port"=>5432, "host"=>"ec2-107-21-233-71.compute-1.amazonaws.com"}
rake aborted!
PG::ConnectionBad: FATAL:  permission denied for database "postgres"
DETAIL:  User does not have CONNECT privilege.
你能告诉我在这个应用程序中配置缺少什么吗


提前感谢。

您不能在heroku上运行
db:create
。相反,您需要提供一个。 这样做将为您创建一个数据库,并将其凭据作为环境变量
database\u URL
提供给您

然后可以运行
db:migrate
来设置所有表。
另见