在Heroku上部署Postgres数据库

时间:2019-12-27 09:51:41

标签: postgresql heroku

我已将sql.dump文件保存在Amazon S3上

链接为 [https://pojo-database.s3.amazonaws.com/picture.dump] 并尝试将其上传到Heroku Postgres数据库

URL: postgres:// uuoksxmgxcqskw:45e2ebc90ac4c5712ef867f6139969d4f73252f4b27961a94510e35626009e35@ec2-54-235-250-38.compute-.amazonaws.com:5432 / d2gmcra2tqtdh6

我在GIT上运行的命令

herokupg:backups:restore'https://pojodatabase.s3.amazonaws.com/picture.dump'postgres://uuoksxmgxcqskw:45e2ebc90ac4c5712ef867f6139969d4f73252f4b27961a94510e35626009e35@ec2-54-235-250-38.compute-1.amazonaws.com:5432/d2gmcra2tqtdh6 --app notedatabaseserver9167

运行后出现以下错误

---------------------------------
Stop a running restore with heroku pg:backups:cancel.

Restoring... !
 !    An error occurred and the backup did not finish.

 !
 !    
pg_restore: [custom archiver] could not read from input file: end of file

 !    pg_restore finished with errors

 !    waiting for download to complete

 !    download finished with errors

 !    please check the source URL and ensure it is publicly accessible

 !    Run heroku pg:backups:info r013 for more details.

S3可以公开访问

0 个答案:

没有答案