Skip to content

Commit

Permalink
Set assets.export_concurrent to false
Browse files Browse the repository at this point in the history
There seems to be issues with Sprockets version 4, errors like [1]
occur when precompiling assets.

A suggestion I've seen to avoid this is to add this configuration [2].

1: SassC::SyntaxError: Error: error in C function font-path: undefined
method `[]' for nil:NilClass
2: rails/sprockets#581 (comment)
  • Loading branch information
Christopher Baines committed Nov 11, 2019
1 parent 3bd40fb commit 2c27e8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = "1.0"

# TODO: This seems to help work around asset precompilation failures
Rails.application.config.assets.export_concurrent = false

# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path

Expand Down

0 comments on commit 2c27e8f

Please sign in to comment.