Skip to content
Extension to allow Trinidad to do hot deploys touching a file, ala Passenger. From Trinidad 1.1.0 this extension is not needed, see README
Ruby Java
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
rakelib
spec
src/main/java/org/jruby/trinidad
trinidad-libs
.gitignore
History.txt
LICENSE
README
Rakefile
trinidad_hotdeploy_extension.gemspec

README

Trinidad hotdeploy extension
======

# DESCRIPTION

Extension to allow Trinidad to redeploy an application each time a file, for instance tmp/restart.txt, is modified without restarting Tomcat.

[WARNING] This extension only works with Trinidad 0.9.0 or avobe.

# INSTALL

    $ jruby -S gem install trinidad_hotdeploy_extension

# CONFIGURE

To configure it, we need to add it into the extensions section of a web application in the Trinidad's configuration file.

http://wiki.github.com/calavera/trinidad/advanced-configuration

It also allows to configure the name of the file to monitorize and the period of time that it waits between each check.

    ---
      web_apps:
        default:
          extensions:
            hotdeploy:
              monitor: tmp/restart.txt # this parameter is optional, the default value is tmp/restart.txt
              delay: 30000 # in milliseconds, this parameter is optional, the default value is 1 second

This extension can also be loaded from the command line with its default parameters:

  $ jruby -S trinidad --load hotdeploy


Further information on how to write your own extension can be found in the wiki: http://wiki.github.com/calavera/trinidad/extensions

# Copyright

Copyright (c) 2010 David Calavera. See LICENSE for details.
Something went wrong with that request. Please try again.