【问题标题】:"Resource not found" for Heroku PG commandsHeroku PG 命令的“找不到资源”
【发布时间】:2012-11-30 16:38:10
【问题描述】:

我有一个免费的 Heroku 帐户,我正在使用:

  • Rails 3.2.8
  • Heroku heroku-toolbelt/2.33.2
  • PG

但是,每次我输入 Heroku PG 命令时,我都会收到以下消息:

Resource not found!

凭证命令除外:

➜  heroku pg:credentials HEROKU_POSTGRESQL_MYDB
   Connection info string:
   "dbname=blahblahblah"

否则,所有其他命令都失败:

➜  heroku pg:info HEROKU_POSTGRESQL_MYDB       
   !    Resource not found

➜  heroku pg:reset HEROKU_POSTGRESQL_MYDB    
   WARNING: Destructive Action
   This command will affect the app: myapp
   To proceed, type "myapp" or re-run this command with --confirm myapp

   > myapp
   Resetting HEROKU_POSTGRESQL_MYDB_URL (DATABASE_URL)... failed
   !    Resource not found
➜ 

有什么想法吗? 如果您需要更多信息,请告诉我:)

谢谢!

【问题讨论】:

  • 你修好了吗?我有同样的问题。谢谢

标签: ruby-on-rails heroku resources pg


【解决方案1】:

以前,有一些 issue 使用 heroku gem 版本(2.26.6)并且未找到此资源,但它已在最新版本中得到修复。

你使用的当前版本没有问题。

您的 heroku 密钥将无效(Trying to set up a heroku staging site - "Resource not found ")。

如果正确,则需要降级heroku gem并检查。

请关注thread

它将帮助您解决上述问题。

【讨论】:

    猜你喜欢
    • 2011-07-14
    • 2012-09-29
    • 2011-11-01
    • 2021-06-17
    • 2021-07-18
    • 2015-05-12
    • 2018-06-14
    • 1970-01-01
    • 2014-03-14
    相关资源
    最近更新 更多