Closed alallier closed 6 years ago
As of right now there is an intentional security check in place that ignores the argument list when Roosevelt is started in an external environment.
The best way to solve this would be to ensure that unit tests always start Roosevelt apps inside of a forked process, to ensure there is no environmental pollution that effects the app. Once this is done we can strip out that check and this issue will be solved.
Roosevelt won't source arguments when using something like PM2. This is due to this block of code.
When using PM2 arguments look like this
The source name
app.js
in this case is not in the argument list, so--development-mode
never gets sourced