Disable Asset Minification in Rails Production

后端 未结 9 1931
Happy的楠姐
Happy的楠姐 2020-12-04 17:52

In order to debug javascript in my heroku production environment, I need to disable asset compression (or at least compression of javascript). I tried config.assets.c

9条回答
  •  Happy的楠姐
    2020-12-04 18:33

    Looks like this MAY have been a bug in Rails. From the changelog for upcoming rails 3.2.9, is this what you were running into?

    Respect config.digest = false for asset_path

    Previously, the asset_path internals only respected the :digest option, but ignored the global config setting. This meant that config.digest = false could not be used in conjunction with config.compile = false this corrects the behavior.

    http://weblog.rubyonrails.org/2012/10/29/ann-rails-3-2-9-rc1-has-been-released/

    Do you think that could be related?

提交回复
热议问题