Rails production static files routing error

前端 未结 2 837
独厮守ぢ
独厮守ぢ 2020-12-17 14:02

When I run my app locally in test/dev my views come up nicely and everything is happy. When I try to navigate to those same erb files running on my remote server/local produ

2条回答
  •  旧时难觅i
    2020-12-17 14:39

    In Rails5, you should comment

    "config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?" 
    

    in config/enviroment/production.rb

提交回复
热议问题