Ruby on rails 无法通过heroku打开应用程序(使用Micheal Hartl的Ruby on Rails,第2章)
我已经在Rails中完成了一个应用程序,并尝试在heroku上部署,但遇到一个错误,错误是:您要查找的页面不存在。 不过,该应用程序在本地运行。我还更新了数据库并运行了heroku status,其中显示:Ruby on rails 无法通过heroku打开应用程序(使用Micheal Hartl的Ruby on Rails,第2章),ruby-on-rails,heroku,Ruby On Rails,Heroku,我已经在Rails中完成了一个应用程序,并尝试在heroku上部署,但遇到一个错误,错误是:您要查找的页面不存在。 不过,该应用程序在本地运行。我还更新了数据库并运行了heroku status,其中显示: Production: No known issues at this time. Development: No known issues at this time. 我遇到过同样的问题;对位于config/environments/production.rb中的productio
Production: No known issues at this time.
Development: No known issues at this time.
我遇到过同样的问题;对位于
config/environments/production.rb中的production.rb进行以下更改后
config.assets.compile = false
到
提交新的更改。heroku日志怎么说?您是否使用rails_12factor?部署应用程序时是否也可以发布控制台输出?我没有提交并推送到git,所以它显示了错误页面。推到git后,它工作正常。
config.assets.compile = true