我已经使用了happy_seed gem并安装了devise登录这个应用程序在开发中运行良好,但当我将它部署到heroku时,它给了我一个错误我也检查了日志,但是没有什么可以帮助调试这个错误。
以下是应用程序注册链接http://radiant-lowlands-7232.herokuapp.com/users/sign_in

最佳答案

你必须做heroku run rake db:migrate
因为所有的迁移都只在development中。
它帮助您在production中创建数据库
https://devcenter.heroku.com/articles/getting-started-with-rails4

关于ruby-on-rails - 登录无法在heroku中使用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34409569/

10-16 19:36