fix(deploy): copy from /src (helper bind) not host workspace path

This commit is contained in:
chenxing
2026-08-04 22:46:27 +08:00
parent 5e368f6c4e
commit caec1d864c
+3 -2
View File
@@ -67,7 +67,8 @@ async function main() {
} }
console.log('workspace source (host path):', wsSource); console.log('workspace source (host path):', wsSource);
const srcDist = wsSource + '/front/dist/prod'; // Inside the helper, the workspace is bound at /src (see Binds below).
const SRC_IN_HELPER = '/src/front/dist/prod';
const createBody = { const createBody = {
Image: HELPER_IMAGE, Image: HELPER_IMAGE,
@@ -82,7 +83,7 @@ async function main() {
`set -e; ` + `set -e; ` +
`rm -rf ${HOST_STATIC}/front && ` + `rm -rf ${HOST_STATIC}/front && ` +
`mkdir -p ${HOST_STATIC}/front && ` + `mkdir -p ${HOST_STATIC}/front && ` +
`cp -r ${srcDist}/. ${HOST_STATIC}/front/ && ` + `cp -r ${SRC_IN_HELPER}/. ${HOST_STATIC}/front/ && ` +
`echo "copied"; ls -la ${HOST_STATIC}/front | head`, `echo "copied"; ls -la ${HOST_STATIC}/front | head`,
], ],
}; };