Problem: This works perfectly but stopping the server is a problem. uWSGI sends a termination signal to the outer Python process, but the inner Node process isn't affected by this signal.
Possible fix: signal handler in django yarnpkg that will automatically kill the process when SIGTERM is received. Only problem: this will not work with SIGKILL
Current behaviour:
With signal:
(yes, I know, a video would demonstrate this better)