Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup code and leave maven options for the time being
[ci skip]
- Loading branch information
Showing
2 changed files
with
37 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,42 @@ | ||
# jetty run [![Build Status](https://secure.travis-ci.org/mkristian/jetty-run.png)](http://travis-ci.org/mkristian/jetty-run) # | ||
# | ||
|
||
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 is a lot). | ||
## install ## | ||
|
||
first uninstall older ruby-maven (< 3.0.4.0.29.0) if present, they will otherwise conflict with jetty-run command | ||
|
||
$ gem uninstall ruby-maven | ||
$ gem install jetty-run | ||
|
||
## usage ## | ||
|
||
$ cd my_rails_app | ||
$ jruby -S bundle install | ||
$ jetty-run | ||
|
||
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. | ||
|
||
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). | ||
|
||
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. | ||
|
||
to customize jetty you can use _Mavenfile_ which allows to reconfigure jetty-maven-plugin with a ruby DSL: | ||
to customize jetty you can use the _Mavenfile_ which allows to reconfigure jetty-maven-plugin: | ||
|
||
properties['jetty.version'] = '7.5.1.v20110908' | ||
properties['jetty.version'] = '7.5.1.v20110908' | ||
|
||
TODO more advanced example and current config | ||
|
||
## running any given war-file ## | ||
|
||
jetty-war war /path/to/war-file | ||
|
||
with this you warble your warfile and use jetty-run to start it with jetty. | ||
|
||
## more ## | ||
|
||
see | ||
|
||
jetty-run help | ||
# note # | ||
|
||
most functionality is hidden inside 'maven-tools' gem and de.saumya.mojo:ruby-tools jar (from jruby-maven-plugins). it was first part of these jruby-maven-plugins and slowly the functionality moved to the ruby side of things. so things are on the move . . . | ||
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 . . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters