Giter Club home page Giter Club logo

trinidad_hotdeploy_extension's Introduction

Trinidad hotdeploy extension
======

[IMPORTANT] If you are running more recent version of Trinidad this extension is not needed anymore because the core itself performs hotdeploy.

# 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

# DEVELOPMENT

Copy the hooks into git-hooks directory to .git/hooks to make sure the jar file is updated when the java code is modified.

# Copyright

Copyright (c) 2010-2011 David Calavera. See LICENSE for details.

trinidad_hotdeploy_extension's People

Contributors

calavera avatar

Stargazers

Alvin Lau avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.