GithubHelp home page GithubHelp logo

reinert / jetty-pkg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nilsga/jetty-pkg

0.0 2.0 0.0 73 KB

Embed-your-webapp into jetty7 example

Home Page: http://open.bekk.no/2011/01/14/embedded-jetty-7-webapp-executable-with-maven/

jetty-pkg's Introduction

Usage

  • Add your war file artifact to the Maven pom.xml
  • Build it mvn clean install
  • Run it java -jar yourWebApp-version.jar start

Configuration

Create a secret (i.e. one per environment):

:➜ md5sum yourWarFile.war
eb27fb2e61ed603363461b3b4e37e0a0  yourWarFile.war

Create a configuration file:

:➜ cat > /etc/bekkopen/appname.properties
jetty.contextPath=/appname
jetty.port=7000
jetty.workDir=/var/apps/appname/
jetty.secret=eb27fb2e61ed603363461b3b4e37e0a0
[ctrl+d]

Start it with a configuration file (default: CWD/jetty.properties):

:➜ java -Dconfig=/etc/bekkopen/appname.properties -jar appname-1.0.0rc0.jar

Override individual properties:

:➜ java -Djetty.port=7001 -jar appname-1.0.0rc0.jar

(I didn't bother implementing combinations of system properties and resource properties - we i.e. use Constretto in our own launcher).

jetty-pkg's People

Contributors

oc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.