Skip to content

How to detect if the application is running under the development server? #2158

Answered by guest20
fluca1978 asked this question in Q&A
Discussion options

You must be logged in to vote

mojo will load config files based on the mode, so it makes sense to put your features behind a config flag and then turn them on in $appname.development.conf.

This also lets you turn on a features you planned to be dev-only in non-dev when they turn out to be handy for tracking down issues in prod.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fluca1978
Comment options

You must be logged in to vote
1 reply
@jberger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants