Add Documentation for changes to Docker #69
Add Documentation for changes to Docker #69BluetonicBeats wants to merge 1 commit intoPaymenter:v1from
Conversation
…ilding instructions
| Run following command to build the default theme: | ||
| ```bash | ||
| docker compose run --rm asset-builder npm install | ||
| docker compose run --rm asset-builder npm run build default |
There was a problem hiding this comment.
Why is this neccesary? Doesn't a docker update contain the build files?
There was a problem hiding this comment.
Good catch! You're right - the Docker container does come with the compiled build files, and they're stored in volumes so they persist across updates. The rebuild step isn't strictly necessary for a normal update.
However, I've found that in some instances, the default build files can go missing or the theme gets unset, which leaves the user with a broken setup. The rebuild commands are more of a failsafe/recovery step to get things back to a working state if something fails during the update.
Since it's not a mandatory part of the update process, how about we're actually moving these instructions to the FAQ as a troubleshooting tip: "If your theme isn't loading or assets are missing after an update, try rebuilding the default theme."
Docker Updates Improvements
Enhanced the Docker update process for better clarity and safety:
docker compose down -vto clear non-persistent volumes (built themes/extensions)--force-recreateflag to ensure clean container recreationKey Steps for Docker Users:
docker compose pulldocker compose down -vdocker compose up -d --force-recreate