Skip to content

Commit

Permalink
Disable concurrent when precompile the assets
Browse files Browse the repository at this point in the history
Concurrency are raising failure during the precompile.
There is an issue on sprocket related to this issue
rails/sprockets#581.
  • Loading branch information
David Kang committed Mar 20, 2020
1 parent a6cf72d commit 52ef78c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
Rails.application.config.assets.precompile += ['webui2/webui2.css', 'webui2/application.js', 'webui/obs_factory/application.css', 'webui2/cm2/*.js']

# FIXME: concurrency are raising failure during the precompile.
# For more information https://github.com/rails/sprockets/issues/581
# and https://github.com/sass/sassc-ruby/pull/138
Rails.application.config.assets.export_concurrent = false

0 comments on commit 52ef78c

Please sign in to comment.