Files
foreman/index.html
T
2010-06-23 19:11:56 -04:00

184 lines
6.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv='content-type' value='text/html;charset=utf8'>
<meta name='generator' value='Ronn/v0.7.0 (http://github.com/rtomayko/ronn/tree/0.7.0)'>
<title>foreman(1) - manage Procfile-based applications</title>
<style type='text/css' media='all'>
/* style: man */
body#manpage {margin:0}
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
.mp h2 {margin:10px 0 0 0}
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
.mp h3 {margin:0 0 0 4ex}
.mp dt {margin:0;clear:left}
.mp dt.flush {float:left;width:8ex}
.mp dd {margin:0 0 0 9ex}
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
.mp pre {margin-bottom:20px}
.mp pre+h2,.mp pre+h3 {margin-top:22px}
.mp h2+pre,.mp h3+pre {margin-top:5px}
.mp img {display:block;margin:auto}
.mp h1.man-title {display:none}
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
.mp h2 {font-size:16px;line-height:1.25}
.mp h1 {font-size:20px;line-height:2}
.mp {text-align:justify;background:#fff}
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
.mp u {text-decoration:underline}
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
.mp b.man-ref {font-weight:normal;color:#434241}
.mp pre {padding:0 4ex}
.mp pre code {font-weight:normal;color:#434241}
.mp h2+pre,h3+pre {padding-left:0}
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
ol.man-decor {width:100%}
ol.man-decor li.tl {text-align:left}
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
ol.man-decor li.tr {text-align:right;float:right}
</style>
<style type='text/css' media='all'>
/* style: toc */
.man-navigation {display:block !important;position:fixed;top:0;left:113ex;height:100%;width:100%;padding:48px 0 0 0;border-left:1px solid #dbdbdb;background:#eee}
.man-navigation a,.man-navigation a:hover,.man-navigation a:link,.man-navigation a:visited {display:block;margin:0;padding:5px 2px 5px 30px;color:#999;text-decoration:none}
.man-navigation a:hover {color:#111;text-decoration:underline}
</style>
</head>
<!--
The following styles are deprecated and will be removed at some point:
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
.man-navigation should be used instead.
-->
<body id='manpage'>
<div class='mp' id='man'>
<div class='man-navigation' style='display:none'>
<a href="#NAME">NAME</a>
<a href="#SYNOPSIS">SYNOPSIS</a>
<a href="#DESCRIPTION">DESCRIPTION</a>
<a href="#RUNNING">RUNNING</a>
<a href="#EXPORTING">EXPORTING</a>
<a href="#OPTIONS">OPTIONS</a>
<a href="#PROCFILE">PROCFILE</a>
<a href="#EXAMPLES">EXAMPLES</a>
<a href="#COPYRIGHT">COPYRIGHT</a>
</div>
<ol class='man-decor man-head man head'>
<li class='tl'>foreman(1)</li>
<li class='tc'>Foreman Manual</li>
<li class='tr'>foreman(1)</li>
</ol>
<h2 id="NAME">NAME</h2>
<p class="man-name">
<code>foreman</code> - <span class="man-whatis">manage Procfile-based applications</span>
</p>
<h2 id="SYNOPSIS">SYNOPSIS</h2>
<p><code>foreman start [process]</code><br />
<code>foreman export &lt;format> [location]</code></p>
<h2 id="DESCRIPTION">DESCRIPTION</h2>
<p><strong>Foreman</strong> is a manager for Procfile-based applications. Its aim is to
abstract away the details of the Procfile format, and allow you to either run
your application directly or export it to some other process management
format.</p>
<h2 id="RUNNING">RUNNING</h2>
<p><code>foreman start</code> is used to run your application directly from the command line.</p>
<p>If no additional parameters are passed, foreman will run one instance of each
type of process defined in your Procfile.</p>
<p>If a parameter is passed, foreman will run one instance of the specified
application type.</p>
<p>The following options control how the application is run:</p>
<dl>
<dt><code>-s</code>, <code>--screen</code></dt><dd>Run the application as a series of screen windows rather than interleaved
in stdout.</dd>
</dl>
<h2 id="EXPORTING">EXPORTING</h2>
<p><code>foreman export</code> is used to export your application to another process
management format.</p>
<p>An location to export can be passed as an argument. This argument may be
either required or optional depending on the export format.</p>
<p>The following options control how the application is run:</p>
<dl>
<dt><code>-a</code>, <code>--app</code></dt><dd><p>Use this name rather than the application's root directory name as the
name of the application when exporting.</p></dd>
<dt><code>-c</code>, <code>--concurrency</code></dt><dd><p>Specify the number of each process type to run. The value passed in
should be in the format <code>process=num,process=num</code></p></dd>
</dl>
<h2 id="OPTIONS">OPTIONS</h2>
<p>These options control all modes of foreman's operation.</p>
<ul>
<li><code>-p</code>, <code>--procfile</code>
Specify an alternate location for the application's Procfile. This file's
containing directory will be assumed to be the root directory of the
application.</li>
</ul>
<h2 id="PROCFILE">PROCFILE</h2>
<p>A Procfile should contain both a name for the process and the command used
to run it.</p>
<pre><code>web bundle exec thin start
job bundle exec rake jobs:work
</code></pre>
<h2 id="EXAMPLES">EXAMPLES</h2>
<p>Start one instance of each process type, interleave the output on stdout:</p>
<pre><code>$ foreman start
</code></pre>
<p>Export the application in upstart format:</p>
<pre><code>$ foreman export upstart /etc/init
</code></pre>
<p>Run one process type from the application defined in a specific Procfile:</p>
<pre><code>$ foreman start alpha -p ~/app/Procfile
</code></pre>
<h2 id="COPYRIGHT">COPYRIGHT</h2>
<p>Foreman is Copyright (C) 2010 David Dollar <a href="http://daviddollar.org" data-bare-link="true">http://daviddollar.org</a></p>
<ol class='man-decor man-foot man foot'>
<li class='tl'>Foreman 0.4.3</li>
<li class='tc'>June 2010</li>
<li class='tr'>foreman(1)</li>
</ol>
</div>
</body>
</html>