Instead of running a separate Webpack server to send the React code to the browser, we build the React code into an optimised code bundle in the Dockerfile. The Django server can then send the React code files to the browser via WhiteNoise. So, we only need the one container/process for the Django server.
Instead of running a separate Webpack server to send the React code to the browser, we build the React code into an optimised code bundle in the
Dockerfile
. The Django server can then send the React code files to the browser via WhiteNoise. So, we only need the one container/process for the Django server.With some tweaks I have successfully deployed this on Azure. Thanks Craig.
That sounds amazing. I'll try it out.