Heroku problem : The page you were looking for doesn't exist

后端 未结 13 1118
你的背包
你的背包 2020-12-24 06:43

I have followed book until chapter 5 finished and it\'s working OK in my linux workstation when I push to Heroku, all data pushed correctly but when I try to open Heroku (ht

13条回答
  •  一生所求
    2020-12-24 07:21

    1. Always set a root in routes. That's rails 101

    I wouldn't go for making asset pre-compilation false all the time. For production app I feel it enhances the overall speed if assets have been pre-compiled.

    2. As a rule of thumb I always run rake assets:precompile before pushing to git. Please try it. and then commit to git repository and then heroku. Do heroku restart

    3. Another cause could be heroku rake db:migrate, please check if you did it

    4. Also this is my Gemfile setup for the development and production groups

    group :development do 
        gem 'sqlite3'        
    end
    
    group :production do    
        gem 'pg'
        gem 'rails_12factor'
        gem 'heroku-deflater'   
    end
    

提交回复
热议问题