-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
40 lines (22 loc) · 1008 Bytes
/
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
CapistranoMonit: A Capistrano Plugin
====================================
CapistranoMonit is a Capistrano Plugin that adds functionality to setup/configure the control file for monit and adds "restart" functionality to apply those changes.
Setup
=====
Install the plugin:
$ script/plugin install git://github.com/seebq/capistrano_monit.git
CapistranoMonit requires the following variables:
set :domain, "yourserver.com"
set :mongrel_port, "8000"
CapistranoMonit also allows you to customize the following variables:
set :monit_daemon_interval, "120"
set :monit_alert_email, "you@example.com"
Simply define them in your capistrano config/deploy.rb.
Example
=======
After installation and adding the appropriate monit variables:
$ cap monit:setup
$ cap monit:restart
You can even make sure the monit setup gets run after your setup tasks, in your deploy.rb file:
after "servers:setup", "monit:setup"
Copyright (c) 2008 Charles Brian Quinn <cbq@highgroove.com>, released under the MIT license