Rails not serving assets in production or staging environments

后端 未结 2 895
迷失自我
迷失自我 2021-01-19 04:54

In the process of debugging this problem, I have tried to run my application in production mode locally and it doesn\'t serve up any assets. Additionally, I have a s

2条回答
  •  终归单人心
    2021-01-19 05:27

    This is sort of a guess, but doesn't compile assets need to be set to true?

    config.assets.compile = true
    

    and i think you need to compile the assets like this:

    rake assets:precompile RAILS_ENV='production'
    

提交回复
热议问题