Asset compiling crashing on server environment with: “NoMethodError: undefined method `[]' for nil:NilClass”

前端 未结 3 1388
Happy的楠姐
Happy的楠姐 2020-12-30 01:16

I\'ve been pulling my hair out for this one. I\'ve always had a bad relationship with the asset-pipeline, it is always giving me trouble.. And today again..

When I t

相关标签:
3条回答
  • 2020-12-30 01:42

    Heroku has a post about this. Precompile it locally and add all those files especially /public/assets/manifest.yml. Heroku should ignore pre compilation and proceed.

    0 讨论(0)
  • 2020-12-30 01:45

    the problem is because of .css extension instead of .scss. I have changed it on .scss and it worked.

    0 讨论(0)
  • 2020-12-30 01:56

    I had the samme issue and it turned out to be a css file containing asset-url that didnt have the .scss extension. Weirdly I could compile the assets locally but not on the server.

    0 讨论(0)
提交回复
热议问题