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

前端 未结 7 1736
闹比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 08:08

    Set config.asset.compile = false

    Add to your Gemfile

    group :assets do gem 'turbo-sprockets-rails3' end

    Install the bundle

    Run rake assets:precompile

    Then Start your server

提交回复
热议问题