Put Plugs in runtime mode in :dev, :test to speed up recompilation
authorAlex Gleason <alex@alexgleason.me>
Wed, 19 May 2021 19:27:02 +0000 (14:27 -0500)
committerAlex Gleason <alex@alexgleason.me>
Wed, 19 May 2021 19:27:46 +0000 (14:27 -0500)
config/dev.exs
config/test.exs

index 4faaeff5bfbf7881f72468a3a33d44b4f8a6abf9..8e7d5c5873abbb037154ef3a19be9b118d2046fa 100644 (file)
@@ -54,6 +54,10 @@ config :pleroma, Pleroma.Repo,
 
 config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
 
+# Reduce recompilation time
+# https://dashbit.co/blog/speeding-up-re-compilation-of-elixir-projects
+config :phoenix, :plug_init_mode, :runtime
+
 if File.exists?("./config/dev.secret.exs") do
   import_config "dev.secret.exs"
 else
index 87396a88dbfe98e0764db7817c54476eb9c48ddb..007951097c4ae87c861e874b5a91c68dab1351a2 100644 (file)
@@ -133,6 +133,10 @@ config :pleroma, :side_effects,
   ap_streamer: Pleroma.Web.ActivityPub.ActivityPubMock,
   logger: Pleroma.LoggerMock
 
+# Reduce recompilation time
+# https://dashbit.co/blog/speeding-up-re-compilation-of-elixir-projects
+config :phoenix, :plug_init_mode, :runtime
+
 if File.exists?("./config/test.secret.exs") do
   import_config "test.secret.exs"
 else