fix(deploy): copy from /src (helper bind) not host workspace path
This commit is contained in:
@@ -67,7 +67,8 @@ async function main() {
|
||||
}
|
||||
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 = {
|
||||
Image: HELPER_IMAGE,
|
||||
@@ -82,7 +83,7 @@ async function main() {
|
||||
`set -e; ` +
|
||||
`rm -rf ${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`,
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user