Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bibekaryal86/simple-jetty-container

Jetty Server to Upload War and Run Web App
https://github.com/bibekaryal86/simple-jetty-container

jetty-container jetty-runner jetty-server

Last synced: 1 day ago
JSON representation

Jetty Server to Upload War and Run Web App

Awesome Lists containing this project

README

        

# simple-jetty-container

This app creates a simple jetty container to load war files and run the web application (locally).

The app is pretty simple to run with java -jar command, with arguments:
java -jar -Dport=8004 -Dcontextpath=/some-context-path -Dsizeinbytes=20000000 JAR_NAME.jar

As a result the web application whose war file is loaded will run on localhost port 8004 with context
path `some-context-path`

If the web application whose war file will be deployed by this container also requires system variables, provide them
when running as well. For eg:
java -jar -DSPRING_PROFILES_ACTIVE=development -Dport=8004 -Dcontextpath=/some-context-path -Dsizeinbytes=20000000
JAR_NAME.jar