Skip to content

Commit

Permalink
QA-15406: Fix curl deployment (yarn watch/deploy)
Browse files Browse the repository at this point in the history
  • Loading branch information
baptistegrimaud committed Dec 30, 2024
1 parent 7de586b commit 7077712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (!fs.existsSync(packageFileName)) {

if (deployMethod === 'curl') {
console.log('Deploying URL curl to Jahia bundles REST API...');
console.log(execSync(`curl -s --user ${process.env.JAHIA_USER} --form bundle=@./${packageFilePath} --form start=true ${process.env.JAHIA_HOST}/modules/api/bundles`, {encoding: 'utf8'}));
console.log(execSync(`curl -s --user ${process.env.JAHIA_USER} --form bundle=@${packageFilePath} --form start=true ${process.env.JAHIA_HOST}/modules/api/bundles`, {encoding: 'utf8'}));
} else {
console.log('Deploying using Docker copy...');
console.log(execSync(`docker cp ${packageFilePath} ${process.env.JAHIA_DOCKER_NAME}:/var/jahia/modules`, {encoding: 'utf8'}));
Expand Down

0 comments on commit 7077712

Please sign in to comment.