seebq / capistrano_monit
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
0460a9b
capistrano_monit / README
| ea2d3b17 » | seebq | 2008-06-24 | 1 | CapistranoMonit: A Capistrano Plugin | |
| 2 | ==================================== | ||||
| 3 | |||||
| 4 | CapistranoMonit is a Capistrano Plugin that adds functionality to setup/configure the control file for monit and adds "restart" functionality to apply those changes. | ||||
| 5 | |||||
| 6 | |||||
| 7 | Setup | ||||
| 8 | ===== | ||||
| 9 | |||||
| 0460a9be » | seebq | 2008-06-24 | 10 | Install the plugin: | |
| 11 | |||||
| 12 | $ script/plugin install git://github.com/seebq/capistrano_monit.git | ||||
| 13 | |||||
| ea2d3b17 » | seebq | 2008-06-24 | 14 | CapistranoMonit requires the following variables: | |
| 15 | |||||
| 16 | set :domain, "yourserver.com" | ||||
| 17 | set :mongrel_port, "8000" | ||||
| 18 | |||||
| 19 | CapistranoMonit also allows you to customize the following variables: | ||||
| 20 | |||||
| 21 | set :monit_daemon_interval, "120" | ||||
| 22 | set :monit_alert_email, "you@example.com" | ||||
| 23 | |||||
| 24 | Simply define them in your capistrano config/deploy.rb. | ||||
| 25 | |||||
| 26 | |||||
| 27 | Example | ||||
| 28 | ======= | ||||
| 29 | |||||
| 30 | After installation and adding the appropriate monit variables: | ||||
| 31 | |||||
| 32 | $ cap monit:setup | ||||
| 33 | $ cap monit:restart | ||||
| 34 | |||||
| 35 | You can even make sure the monit setup gets run after your setup tasks, in your deploy.rb file: | ||||
| 36 | |||||
| 37 | after "servers:setup", "monit:setup" | ||||
| 38 | |||||
| 39 | |||||
| 40 | Copyright (c) 2008 Charles Brian Quinn <cbq@highgroove.com>, released under the MIT license | ||||
