This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/config
Thibaut Girka 2df72d0697 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
2018-09-13 15:32:02 +02:00
..
environments Move CSP headers to the appropriate Rails configuration 2018-08-22 20:39:33 +02:00
initializers Merge branch 'master' into glitch-soc/merge-upstream 2018-09-11 16:51:26 +02:00
locales Merge branch 'master' into glitch-soc/merge-upstream 2018-09-11 16:51:26 +02:00
webpack Fix building assets in test environment 2018-09-13 15:32:02 +02:00
application.rb Merge branch 'master' into glitch-soc/merge-upstream 2018-09-11 16:51:26 +02:00
boot.rb
brakeman.ignore Add animate custom emoji param to embed pages (#8507) 2018-08-30 23:14:01 +02:00
database.yml
deploy.rb
environment.rb
i18n-tasks.yml
navigation.rb
puma.rb Revert "Default puma to running on localhost only." (#8444) 2018-08-26 00:13:22 +02:00
routes.rb Allow to show a specific status in the admin interface 2018-09-03 18:19:11 +02:00
secrets.yml
settings.yml Merge branch 'master' into glitch-soc/merge-upstream 2018-09-03 14:33:06 +02:00
sidekiq.yml Update docker config and move some workers to different queues (#8345) 2018-09-02 16:13:06 +02:00
webpacker.yml Fix building assets in test environment 2018-09-13 15:32:02 +02:00