The default Rails app installed by rails new has config.assets.compile = false in production.
rails new
config.assets.compile = false
And the ordinary way to do things is to run
Because it is opening a directory traversal vulnerability - https://blog.heroku.com/rails-asset-pipeline-vulnerability