Heroku数据库还原无法说出多个应用程序,但应用程序已包含在还原命令中

时间:2018-07-27 18:05:03

标签: postgresql heroku

在这里您可以看到我包含并确认该应用程序的控制台

Ryans-MacBook-Pro:ereader-authors Ryan$ heroku pg:backups:restore 'https://www...._july2018.backup' HEROKU_POSTGRESQL_AQUA_URL --app ereader-authors-staging --confirm ereader-authors-staging
Starting restore of https://www...._july2018.backup to gazing-merrily-7879... 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 r008 for more details.
Ryans-MacBook-Pro:ereader-authors Ryan$ heroku pg:backups:info r008
 ›   Error: Multiple apps in git remotes
 ›      Usage: --remote staging
 ›         or: --app ereader-authors-staging
 ›      Your local git repository has more than 1 app referenced in git remotes.
 ›      Because of this, we can't determine which app you want to run this command against.
 ›      Specify the app you want with --app or --remote.
 ›      Heroku remotes in repo:
 ›      ereader-authors (heroku)
 ›   ereader-authors-staging (staging)
 ›
 ›      https://devcenter.heroku.com/articles/multiple-environments

这曾经有用,我保存了此命令。

此站点使我的键入更加明显,因此我无法提交此问题。当您尝试发布控制台输出时,此添加更多详细信息错误是令人讨厌的,他们应该真正修改其执行方式,因为有时您确实不需要命令行的详细解释。

1 个答案:

答案 0 :(得分:0)

如果其他任何人遇到此问题,Heroku给出的错误都是不正确的,我拥有的URL是一个公共共享,因此决定提供一个网页而不是一个文件。该应用程序与它无关,我切换了主机,然后工作了。