We are working on getting our build tooling set up for our production site. One of our requirements is that we should not have any downtime whenever we deploy changes. We are following the Sage 9 book recommended practice of building on the production server. However, the build process for Sage 9 when the user runs
yarn build:production results in about a 10 second timeframe where the
./dist directory is completely deleted while assets are rebuilt.
We would like to modify this behavior so that the assets are built in a different directory on our production server, then we delete
./dist and move the built assets into the same location to prevent downtime during the build.
Has anyone else done this, or can point me towards documentation on either yarn, webpack, or the appropriate tooling that I can start reading on?