Skip to content

Conversation

@baptistegrimaud
Copy link
Contributor

@baptistegrimaud baptistegrimaud commented Dec 30, 2024

https://jira.jahia.org/browse/QA-15406

Description

For the javascript modules, fix the deployment with curl for the yarn watch and yarn deploy commands.

With a new javascript modules freshly created with npx @jahia/create-module@latest my-module (using version 0.0.6), yarn watch and yarn deploy commands fail with the following error:

Deploying URL curl to Jahia bundles REST API...
node:child_process:965
    throw err;
    ^

Error: Command failed: curl -s --user "root:root1234" --form 'bundle=@.//Users/baptistegrimaud/Documents/code/playground/my-module/dist/my-module-v0.1.0-SNAPSHOT.tgz' --form start=true "http://localhost:8080/modules/api/bundles"

The root cause is that the path to the tgz is an absolute path when the curl command expects a relative path.

@baptistegrimaud baptistegrimaud requested a review from a team December 30, 2024 08:35
@baptistegrimaud baptistegrimaud force-pushed the QA-15406-fix-curl-deployment branch from 10d91e1 to 7077712 Compare December 30, 2024 08:45
@baptistegrimaud baptistegrimaud merged commit 2fcf7ff into master Jan 2, 2025
3 checks passed
@baptistegrimaud baptistegrimaud deleted the QA-15406-fix-curl-deployment branch January 2, 2025 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants