1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/config
ThibG 7fa4144d48 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:18:47 +02:00
..
environments
initializers feat(cookies): Use the same-site attribute to lax () 2018-09-08 23:54:28 +02:00
locales Group reports by target account () 2018-09-13 03:44:08 +02:00
webpack Fix building assets in test environment () 2018-09-13 15:18:47 +02:00
application.rb Add Czech language option and locale data () 2018-09-05 08:50:06 +09:00
boot.rb
brakeman.ignore Add animate custom emoji param to embed pages () 2018-08-30 23:14:01 +02:00
database.yml
deploy.rb
environment.rb
i18n-tasks.yml
navigation.rb Add admin dashboard () 2018-07-16 01:11:53 +02:00
puma.rb Revert "Default puma to running on localhost only." () 2018-08-26 00:13:22 +02:00
routes.rb Redirect from old authorize_follow path () 2018-09-03 00:10:28 +02:00
secrets.yml
settings.yml Add preference for report notification e-mails, skip for duplicates () 2018-09-02 00:11:58 +02:00
sidekiq.yml Update docker config and move some workers to different queues () 2018-09-02 16:13:06 +02:00
themes.yml
webpacker.yml Fix building assets in test environment () 2018-09-13 15:18:47 +02:00