chore(deploy): codify prod deploy as deploy/deploy.sh#60
Merged
Conversation
…n.com Codifies the existing manual deploy steps so the next push doesn't need hand-rolling. The non-obvious step is that Next.js standalone output deliberately omits web/public/ and web/.next/static — they have to be copied into the standalone tree after every build, otherwise the labs (/mixdown.html, /labelton.html) 404 in prod. Pipeline: git pull origin/main → npm install → npm run build → cp web/public → standalone/public → cp .next/static → standalone/web/.next/static → systemctl restart muzix-web → verify is-active deploy/README.md documents the on-VPS layout for future operators.
This was referenced May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deploy/deploy.sh— codifies the existing manual prod deploy formuzix.kcolbchain.com.deploy/README.md— documents on-VPS layout for the next operator.Why
The non-obvious step in the current pipeline is that Next.js standalone output deliberately omits
web/public/andweb/.next/static. Forgetting the public-copy step is how the labs (/mixdown.html,/labelton.html) 404 in prod after a rebuild. This script wires both in unconditionally.Pipeline
git fetch && git reset --hard origin/mainin/opt/muzixnpm install --prefer-offlinenpm run buildweb/public/→web/.next/standalone/public/web/.next/static/→web/.next/standalone/web/.next/static/sudo systemctl restart muzix-websystemctl is-active; on failure dump the last 30 journal linesTest plan
/opt/muzixand rundeploy/deploy.shhttps://muzix.kcolbchain.com/returns 200 with the latest commit's contenthttps://muzix.kcolbchain.com/mixdown.htmland/labelton.htmlreturn 200