about summary refs log tree commit diff
path: root/app/presenters
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-09-13 13:33:29 +0200
committerThibG <thib@sitedethib.com>2018-09-13 15:32:02 +0200
commit2df72d06978eb9790a8023f6e1f06df1ec18201a (patch)
tree5c652e34cd50f54e62d43eb8289b9ae8049cacda /app/presenters
parent307fb338ee4432a933ad8c8efe70b1a78d8b3bc0 (diff)
Fix building assets in test environment
Webpacker (Ruby wrapper to webpack) uses RAILS_ENV-based environments while
the javascript configuration for webpack re-reads this configuration file using
the NODE_ENV environment variable. This means that when RAILS_ENV=test, running
“assets:precompile” compiled the production packs in “public/packs” while
webpacker expects them in “public/packs-test”. This causes Ruby to recompile
them on-the-fly, possibly leading to race conditions in parallel_tests.

This changes:
- Disables on-the-fly compilation in test environment
- Changes the javascript part to read the correct environment
Diffstat (limited to 'app/presenters')
0 files changed, 0 insertions, 0 deletions