This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
45 lines (26 loc) · 1.54 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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.