Skip to content
CapistranoMonit is a Capistrano Plugin that adds functionality to setup/configure the control file for monit and adds "restart" functionality to apply those changes.
Ruby
Find file
Pull request Compare This branch is 4 commits ahead of seebq:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
recipes
MIT-LICENSE
README
init.rb

README

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.

This fork is maintained by Wes Oldenbeuving.

Changes compared to upstream:
* There are more options available to configure the location of mongrels.

Setup
=====

Install the plugin:

$ script/plugin install git://github.com/Narnach/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"
set :mongrel_servers, 1
set :mongrel_group, 'mongrel'
set :mongrel_pid_dir, '/var/run/mongrel_cluster'
set :mongrel_pid_name, 'mongrel'

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
Something went wrong with that request. Please try again.