Closed reggieb closed 8 years ago
I don't understand why this is needed. Currently you just need to put gem 'jettywrapper'
in your gemfile and then you can do:
$ rake -T jetty
rake jetty:clean # remove the jetty directory and recreate it
rake jetty:download # download the jetty zip file
rake jetty:environment # Load the jetty config
rake jetty:restart # Restarts jetty
rake jetty:start # Start jetty
rake jetty:status # Return the status of jetty
rake jetty:stop # stop jetty
rake jetty:unzip # unzip the downloaded jetty archive
I think you'll find that only works within a rails environment.
Have a look at this: https://github.com/reggieb/jettywrapper_play
Currently that won't work with jettywrapper. Adding the additional require statement in the rake file allows it to work.
Actually, looking at this again, there is a simpler way to do this - adding:
require 'jettywrapper`
To the Rakefile has the same effect. In fact, playing further - just that command alone in a Rakefile, load the tasks into the environment.
With this small change it is possible to load Jettywrapper's rake tasks into another environment, via a Rakefile with this content:
It is then possible to pull down and build a standalone Jetty instance (with solr and fedora) by running these commands within ruby:
And then be able to start and stop the Jetty instance with
rake jetty:start
andrake jetty:stop