Rails, post-deploy to Heroku: unable to run console, db:migrate

后端 未结 1 1913
星月不相逢
星月不相逢 2020-12-21 01:55

Good day,

My team and I are trying to push our Rails app to Heroku - git push heroku dev:master is successful, but thereafter heroku run rails db:

相关标签:
1条回答
  • 2020-12-21 02:38

    With the version 0.8.0 of devise-jwt it's no longer a problem. Please see the breaking change in version 0.7.0, when upgrading.


    Previous answer

    Probably someone or something upgraded the dry-configurable gem from version 0.9.0 to 0.11.1. This gem is a dependency of warden-jwt_auth which is a dependency of devise-jwt and the new version breaks it.

    A few days ago the version 0.11.0 of dry-configurable was released and warden-jwt_auth uses it, because it specifies the version of this dependency with ~> 0.6, which includes the faulty version (everything from 0.6 to 1.0 would be fine). You can see that in the Gemfile.lock or in the dependencies of warden-jwt_auth.

    If somebody did run bundle upgrade it will have pulled the new faulty version.

    I recommend you to pin the older version of dry-configurable in your Gemfile:

    gem 'dry-configurable', '0.9.0'
    

    Then run bundle update and deploy again.

    0 讨论(0)
提交回复
热议问题