heroku rake db:migrate --trace --app app-name
! Internal server error
这以前工作得很好。
如何诊断?
rake db:migrate
在我的本地数据库上工作正常。日志中没有条目。VERSION=xxx 也没有帮助。
使用 rake 0.8.7。
heroku rake db:migrate --trace --app app-name
! Internal server error
这以前工作得很好。
如何诊断?
rake db:migrate
在我的本地数据库上工作正常。日志中没有条目。VERSION=xxx 也没有帮助。
使用 rake 0.8.7。
好的 heroku 支持已经帮助了我!
这里的解决方法
“尝试从 bash dyno 运行迁移?”
$ heroku run bash
“然后运行你的迁移命令(类似):”
$ bundle exec rake db:migrate --trace
这是一个很好的工作,我可以迁移我的应用程序。
干杯,
乔尔
我之前遇到过这个问题,我认为是服务器问题。
为了解决这个问题:
我添加了 heroku 预定插件,为“rake db:migrate”添加了预定作业:
https://heroku-scheduler.herokuapp.com/dashboard#
它允许您在 Web 界面上运行作业,并确认输出是否成功。
我知道这不是一个解决方案,但目前应该解决这个问题。