Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (23 sloc) 1.669 kb
d70ae19 Christian Meier now run all tests
authored
1 # jetty run [![Build Status](https://secure.travis-ci.org/mkristian/jetty-run.png)](http://travis-ci.org/mkristian/jetty-run) #
e45fd4f Christian Meier first commit after extractig it from ruby-maven
authored
2
6361b01 Christian Meier cleanup code and leave maven options for the time being
authored
3 ## install ##
4
5 first uninstall older ruby-maven (< 3.0.4.0.29.0) if present, they will otherwise conflict with jetty-run command
6
7 $ gem uninstall ruby-maven
8 $ gem install jetty-run
9
10 ## usage ##
11
12 $ cd my_rails_app
13 $ jruby -S bundle install
14 $ jetty-run
15
16 for `bundle install` you need to use JRuby since Gemfile.lock needs to be for the java platform. `jetty-run` works with both MRS and JRUBY - MRI starts up slightly faster.
17
18 jetty-run will use Gemfile/Gemfile.lock and Jarfile/Jarfile.lock to setup an environment to start rails in development mode with jetty. it uses ruby-maven to achieve this, i.e. all missing jar dependencies (jetty and all) will be downloaded on the first run (that can take time since it first needs to download all the jetty related jars).
e45fd4f Christian Meier first commit after extractig it from ruby-maven
authored
19
20 jetty will start with port 8080 (none ssl) and 8443 (ssl). the ssl certificate is ./src/test/resources/server.keystore with password '123456' - it will be copied there on the first run.
21
6361b01 Christian Meier cleanup code and leave maven options for the time being
authored
22 to customize jetty you can use the _Mavenfile_ which allows to reconfigure jetty-maven-plugin:
e45fd4f Christian Meier first commit after extractig it from ruby-maven
authored
23
6361b01 Christian Meier cleanup code and leave maven options for the time being
authored
24 properties['jetty.version'] = '7.5.1.v20110908'
e45fd4f Christian Meier first commit after extractig it from ruby-maven
authored
25
26 TODO more advanced example and current config
27
6361b01 Christian Meier cleanup code and leave maven options for the time being
authored
28 ## running any given war-file ##
29
30 jetty-war war /path/to/war-file
31
32 with this you warble your warfile and use jetty-run to start it with jetty.
33
34 ## more ##
35
36 see
37
38 jetty-run help
39
e45fd4f Christian Meier first commit after extractig it from ruby-maven
authored
40 # note #
41
6361b01 Christian Meier cleanup code and leave maven options for the time being
authored
42 orginally the code was part the jruby-maven-plugins and slowly the functionality moved to the ruby side of things. so things are on the move and there is room for improvements . . .
Something went wrong with that request. Please try again.