Disable Asset Minification in Rails Production

后端 未结 9 1928
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条回答
  •  遥遥无期
    2020-12-04 18:25

    Also worth noting... In addition to ncherro solution you will need to do the following:

    1. make sure to put your new module somewhere where it will be loaded by default. Was lib/extras in my case.
    2. run rake assets:clean to clean your existing assets.
    3. run rake assets:precompile to compile your assets using the new compressor.
    4. restart your app... i use touch tmp/restart.txt

    Happy debugging ;)

提交回复
热议问题