【问题标题】:Can Push to Heroku But Can't Run Migration可以推送到 Heroku 但不能运行迁移
【发布时间】:2012-10-19 03:44:21
【问题描述】:

我可以通过 ... 将 Rails 应用程序推送到 Heroku git push heroku 但是当我尝试迁移时... heroku run rake db:migrate 我明白了……

Running rake db:migrate attached to terminal... failed ! You do not have access to the app my-app-name-1234.

编辑:我的 .git/config 包含... [remote "heroku"] url = git@heroku.com:young-mist-1198.git fetch = +refs/heads/*:refs/remotes/heroku/*

有什么想法吗? Heroku 方面的情况看起来很合理,似乎如果我的 ssh 密钥不好,它甚至不会让我推动。

【问题讨论】:

    标签: ruby-on-rails-3 heroku rake dbmigrate


    【解决方案1】:

    好的,我想通了,以防它帮助别人...... heroku auth:login

    不知何故,我没有被授权,只需要重新登录。

    【讨论】:

      【解决方案2】:

      试试这个

      heroku run bash --app appname
      heroku run rake db:migrate
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-12-26
        • 2019-04-09
        • 1970-01-01
        • 2021-11-23
        • 1970-01-01
        • 1970-01-01
        • 2023-03-04
        • 1970-01-01
        相关资源
        最近更新 更多