config.assets.compile=true in Rails production, why not?

前端 未结 7 1745
闹比i
闹比i 2020-11-22 07:17

The default Rails app installed by rails new has config.assets.compile = false in production.

And the ordinary way to do things is to run

7条回答
  •  忘了有多久
    2020-11-22 07:51

    Because it is opening a directory traversal vulnerability - https://blog.heroku.com/rails-asset-pipeline-vulnerability

提交回复
热议问题