started on documentation site
[god.git] / site / index.html
blobc90c9abfbb2177155e22af94b0e01b1fd72991c3
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5 <title>Project.Mothership</title>
6 <link href="styles.css" rel="stylesheet" type="text/css" />
7 <style type="text/css" media="screen">
8 * {
9 margin: 0;
10 font-size: 100%;
13 body {
14 font: normal .8em/1.5em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
15 color: #484848;
16 background: #E6EAE9 url(images/bg_grey.gif);
19 a {
20 color: #c75f3e;
21 text-decoration: none;
24 a:hover,
25 a:active {
26 text-decoration: underline;
29 #mothership {
30 width: 307px;
31 height: 117px;
32 margin: 0 auto;
33 background: url(images/god_logo1.gif);
36 #content {
37 width: 700px;
38 margin: 3px auto;
39 background: white;
40 border: 1px solid #444;
41 padding: 0 24px;
42 background: #f8f8ff;
43 overflow: hidden;
46 .banner {
47 margin-top: 24px;
48 border: 1px solid #ddd;
49 width: 698px;
50 height: 150px;
51 background: url(images/banner.jpg);
54 #menu {
55 margin-top: 5px;
58 #menu div.dots {
59 background: url(images/red_dot.gif) repeat;
60 height: 5px;
61 width: 700px;
62 font-size: 0;
65 #menu ul {
66 font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
67 font-weight: bold;
68 text-transform: uppercase;
69 color: #4D4D4D;
70 font-size: 12px;
71 padding: 0;
72 margin: 0;
73 margin-top: 0 !important;
74 margin-top: -2px;
77 #menu li {
78 display: inline;
79 margin: 0 30px 0 0;
82 #menu a:link,
83 #menu a:visited {
84 color: #4D4D4D;
85 text-decoration: none;
88 #menu a:hover,
89 #menu a:active {
90 color: black;
91 text-decoration: none;
94 #page_home #menu li.menu_home a {
95 color: #A70000;
98 .columnleft {
99 float: left;
100 width: 325px;
101 margin-bottom: 20px;
104 .columnleft p {
105 text-align: justify;
108 .columnright {
109 float: right;
110 width: 325px;
111 margin-bottom: 20px;
114 h1 {
115 font: bold 1.5em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
116 color: #f36e21;
117 text-transform: uppercase;
118 margin: 1.5em 0 .5em 0;
119 clear: both;
123 margin-bottom: 1em;
126 ul.features {
127 padding: 0;
128 margin-left: 1.5em !important;
129 margin-left: 1.3em;
132 ul.features li {
133 list-style-position: outside;
134 list-style-type: circle;
135 list-style-image: url(images/bullet.jpg);
136 line-height: 1.4em;
139 #footer {
140 text-align: center;
141 color: white;
142 margin-bottom: 50px;
147 pre {
148 font-size: 1.2em;
149 line-height: 1.5;
150 border: 1px solid #ccc;
151 padding: 1em;
152 background-color: #efefef;
155 .ruby .keywords {
156 font-weight: bold;
157 color: blue;
160 .ruby .comment {
161 color : green;
164 .ruby .string {
165 color : teal;
168 .ruby .keywords {
169 color : navy;
172 .ruby .brackets {
173 color : navy;
175 </style>
177 <script type="text/javascript" src="javascripts/code_highlighter.js"></script>
178 <script type="text/javascript" src="javascripts/ruby.js"></script>
180 </head>
182 <body id="page_home">
184 <div id="mothership">
186 </div>
187 <div id="content">
188 <div class="banner">
190 </div>
192 <!-- <div id="menu">
193 <div class="dots"></div>
194 <ul>
195 <li class="menu_home"><a href="/">Home</a></li>
196 <li class="menu_contact"><a href="mailto:tom@projectmothership.com">Contact</a></li>
197 </ul>
198 <div class="dots"></div>
199 </div> -->
201 <div class="columnleft">
202 <h1>A Better Way to Monitor</h1>
203 <p>God is an easy to configure, easy to extend monitoring library written in Ruby.</p>
204 <p><p>
205 </div>
207 <div class="columnright">
208 <h1>Features</h1>
209 <ul class="features">
210 <li>Config file is written in Ruby</li>
211 <li>Write your own conditions in Ruby</li>
212 </ul>
213 </div>
215 <h1>Simple is Better</h1>
216 <p>Keeping your server processes and tasks running should be a simple part of your deployment process. God aims to be the simplest, most powerful monitoring application available.</p>
218 <h1>Finally, a Config File that Makes Sense</h1>
219 <p>The easiest way to understand how god will make your life better is by looking at a sample config file. The following configuration file is what I use at <a href="http://site.gravatar.com/">gravatar.com</a> to keep the mongrels running:</p>
221 <pre><code class="ruby"># This is the actual config file used to keep the mongrels of
222 # gravatar.com running.
224 RAILS_ROOT = "/var/www/gravatar2/current"
226 God.meddle do |god|
227 god.interval = 30 # seconds
229 %w{8200 8201 8202}.each do |port|
230 god.watch do |w|
231 w.name = "gravatar2-mongrel-#{port}"
232 w.cwd = RAILS_ROOT
233 w.start = "mongrel_rails cluster::start --only #{port}"
234 w.stop = "mongrel_rails cluster::stop --only #{port}"
236 w.start_if do |start|
237 start.condition(:process_not_running) do |c|
238 c.pid_file = File.join(RAILS_ROOT, "log/mongrel.#{port}.pid")
244 </code></pre>
246 </div>
247 <div id="footer">
248 <p>Brought to you by <a href="http://rubyisawesome.com/">Ruby is Awesome</a></p>
249 </div>
251 </body>
252 </html>