恢复数据库时,Heroku缺少必需的标志

问题描述 投票:0回答:1

我见过几个SO帖子,尽管googleing和heroku --help,我仍然得到同样的错误

我一直在努力:https://devcenter.heroku.com/articles/heroku-postgres-import-export

$ heroku pg:backups:restore 'secure-file-location-url' DATABASE_URL --app heroku-app-name --confirm heroku-app-name
Starting restore of secure-file-location-url to postgresql-flat-47715... done

Use Ctrl-C at any time to stop monitoring progress; the backup will continue restoring.
Use heroku pg:backups to check progress.
Stop a running restore with heroku pg:backups:cancel.

Restoring... !
 ▸    An error occurred and the backup did not finish.
 ▸    
 ▸    waiting for restore to complete
 ▸    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 r018 for more details.
$ heroku pg:backups:info r018
 ›   Error: Missing required flag:
 ›     -a, --app APP  app to run command against
 ›   See more help with --help

我的secure-file-location-url是一个公开的Google云端硬盘链接,我可以在隐身浏览器窗口中访问该链接。

heroku heroku-postgres
1个回答
1
投票

正如评论中所讨论的,您的数据库转储正在Google云端硬盘上托管,您提供的链接将通过“下载文件”按钮发送给查看器。

相反,您必须提供指向该文件的直接链接。该文档建议使用Amazon S3。

© www.soinside.com 2019 - 2024. All rights reserved.