application.css not being served as an asset

前端 未结 3 3208
遇见更好的自我
遇见更好的自我 2021-02-20 18:52

EDIT 4, 5 and 6

8 hours in, any more ideas are welcome :) Maybe this bug is already known and solved, but I get the behaviour I described in edit 2&

3条回答
  •  耶瑟儿~
    2021-02-20 19:51

    I had this issue the other day and solved it by editing the production.rb file

    config.assets.compress = true
    config.assets.compile = true
    config.assets.digest = true
    config.assets.initialize_on_precompile = false
    

    Are the asset settings I ended up with. I precompile my assets, while deploying with capistrano.

    Before I edited the asset settings, I had exactly the same issue. The .css was being requested and was compiled into my public/assets folder but the server couldnt find the files.

提交回复
热议问题