Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
e3173a27
Verified
Commit
e3173a27
authored
May 19, 2021
by
Alex Gleason
Browse files
Put Plugs in runtime mode in :dev, :test to speed up recompilation
parent
b221d77a
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/dev.exs
View file @
e3173a27
...
...
@@ -54,6 +54,10 @@
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
...
...
config/test.exs
View file @
e3173a27
...
...
@@ -133,6 +133,10 @@
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
...
...
Alex Gleason
@alexgleason
mentioned in commit
8a6c1fe6
·
May 23, 2021
mentioned in commit
8a6c1fe6
mentioned in commit 8a6c1fe6176e60b36ac491e2060f4f2079dc6515
Toggle commit list
Alex Gleason
@alexgleason
mentioned in commit
2e682788
·
May 31, 2021
mentioned in commit
2e682788
mentioned in commit 2e682788a30b225b67254e92d1807b317ede57f8
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment