Skip to content

Commit

Permalink
Fixes #10158 - Deploy Jetty context XML file needs environment
Browse files Browse the repository at this point in the history
Updated the documentation; a better fix is coming with #10411.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Aug 26, 2023
1 parent 2bf2596 commit 86c245d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ A simple Jetty context XML file, for example named `wiki.xml` is the following:
<2> Specifies the web application `contextPath`, which may be different from the `+*.war+` file name.
<3> Specifies the file system path of the `+*.war+` file.

The Jetty content XML file must be accompanied by a `+*.properties+` file that specifies the xref:og-deploy[environment] to use for the deployment:

.wiki.properties
[source,properties,subs=attributes]
----
environment={ee-current}
----

Refer to xref:og-deploy-rules-environment[this section] for more information about specifying the environment.

The `$JETTY_BASE` directory would look like this:

----
Expand All @@ -47,6 +57,7 @@ $JETTY_BASE
│ ├── deploy.ini
│ └── http.ini
└── webapps
├── wiki.properties
└── wiki.xml
----

Expand Down

0 comments on commit 86c245d

Please sign in to comment.