Skip to content

Unable to deploy when using a custom context #550

@baptistegrimaud

Description

@baptistegrimaud

Environment and versions used

Latest version

Steps to reproduce

  1. Start a Jahia with a custom context, i.e.:
run -d -p 8081:8080 -p 8001:8000 -p 8102:8101 -p 10002:10001 -p 8444:8443 -p 9230:9229 -e CATALINA_CONTEXT=custom-context  -e JPDA=true -e JAHIA_DISABLE_SNAPSHOTS_PULL=false --name jahia-custom-context ghcr.io/jahia/jahia-ee-dev:8-SNAPSHOT

(note the CATALINA_CONTEXT env variable)
2. Configure your .env file to match your Jahia setup:

JAHIA_USER=root:root1234
JAHIA_HOST=http://localhost:8081/custom-context/
  1. Run a yarn dev from the root of your JavaScript Module

Current Behavior

It fails to deploy:

Deploying the package to Jahia...
404: 
<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/9.0.111</h3></body></html>                                                                                                                                                                                                                                                  

Desired Behavior

It should use the custom context and deploy successfully the JS module

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions