Rebuild button uses --no-cache to force fresh frontend compile

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-21 08:28:30 +00:00
parent 584fe806d9
commit 066c03872d

View file

@ -259,7 +259,8 @@ async function deploy(target, repoName) {
async function rebuild(target, repoName) {
const p = target.path
return runRemote(target, repoName, `docker compose -f ${p}/docker-compose.yml --project-directory ${p} up -d --build`, 'rebuild')
const cmd = `docker compose -f ${p}/docker-compose.yml --project-directory ${p} build --no-cache && docker compose -f ${p}/docker-compose.yml --project-directory ${p} up -d`
return runRemote(target, repoName, cmd, 'rebuild')
}
// ── Routes ────────────────────────────────────────────────────────────────────