Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garethr/jruby-embedded-jetty
Simple example of creating an executable war file with an embedded jetty
https://github.com/garethr/jruby-embedded-jetty
Last synced: 10 days ago
JSON representation
Simple example of creating an executable war file with an embedded jetty
- Host: GitHub
- URL: https://github.com/garethr/jruby-embedded-jetty
- Owner: garethr
- Created: 2012-04-06T11:42:14.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-06T11:44:21.000Z (over 12 years ago)
- Last Synced: 2024-12-11T15:56:14.294Z (12 days ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a very simple example of creating a self-contained JRuby
executable which runs an embedded Jetty web server.If you want to try it out you'll need to be running JRuby and have
Bundler installed. Then install the dependencies:bundle install
Create the executable WAR file with:
bundle exec rake war
And then to start the application running:
java -jar jruby-embedded-jetty.war
You can pass extra system properties at the command line too, For
instance to change the port the application will run on and to enable
jmx output you could use:java -server -Dcom.sun.management.jmxremote -Djetty.port=8090 -jar jruby-embedded-jetty.war