Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dbfd8ba49a | ||
|
|
d6837177cd | ||
|
|
58b45c4933 | ||
|
|
fbdf4d7220 | ||
|
|
895672efe8 | ||
|
|
8597e0dc16 | ||
|
|
408ba06c3f | ||
|
|
a0f82840eb | ||
|
|
1317013898 | ||
|
|
6a7720872f | ||
|
|
b3a5fa9c1b | ||
|
|
41e095cf04 | ||
|
|
2c9f6c25fc | ||
|
|
ce0261c3de | ||
|
|
f138d26e7e | ||
|
|
6000e837fe | ||
|
|
02299c4c1c | ||
|
|
6dc9fe2667 | ||
|
|
a61d808487 | ||
|
|
5f98544dab | ||
|
|
99da671f5d |
+32
-1
@@ -62,11 +62,39 @@ The following options control how the application is run:
|
|||||||
|
|
||||||
These options control all modes of foreman's operation.
|
These options control all modes of foreman's operation.
|
||||||
|
|
||||||
* `-f`, `--procfile`
|
* `-f`, `--procfile`:
|
||||||
Specify an alternate location for the application's Procfile. This file's
|
Specify an alternate location for the application's Procfile. This file's
|
||||||
containing directory will be assumed to be the root directory of the
|
containing directory will be assumed to be the root directory of the
|
||||||
application.
|
application.
|
||||||
|
|
||||||
|
## EXPORT FORMATS
|
||||||
|
|
||||||
|
foreman currently supports the following output formats:
|
||||||
|
|
||||||
|
* inittab
|
||||||
|
|
||||||
|
* upstart
|
||||||
|
|
||||||
|
## INITTAB EXPORT
|
||||||
|
|
||||||
|
Will export a chunk of inittab-compatible configuration:
|
||||||
|
|
||||||
|
# ----- foreman example processes -----
|
||||||
|
EX01:4:respawn:/bin/su - example -c 'PORT=5000 bundle exec thin start >> /var/log/web-1.log 2>&1'
|
||||||
|
EX02:4:respawn:/bin/su - example -c 'PORT=5100 bundle exec rake jobs:work >> /var/log/job-1.log 2>&1'
|
||||||
|
# ----- end foreman example processes -----
|
||||||
|
|
||||||
|
## UPSTART EXPORT
|
||||||
|
|
||||||
|
Will create a series of upstart scripts in the location you specify. Scripts
|
||||||
|
will be structured to make the following commands valid:
|
||||||
|
|
||||||
|
`start appname`
|
||||||
|
|
||||||
|
`stop appname-processname`
|
||||||
|
|
||||||
|
`restart appname-processname-3`
|
||||||
|
|
||||||
## PROCFILE
|
## PROCFILE
|
||||||
|
|
||||||
A Procfile should contain both a name for the process and the command used
|
A Procfile should contain both a name for the process and the command used
|
||||||
@@ -99,6 +127,9 @@ Foreman is Copyright (C) 2010 David Dollar <http://daviddollar.org>
|
|||||||
[RUNNING]: #RUNNING "RUNNING"
|
[RUNNING]: #RUNNING "RUNNING"
|
||||||
[EXPORTING]: #EXPORTING "EXPORTING"
|
[EXPORTING]: #EXPORTING "EXPORTING"
|
||||||
[OPTIONS]: #OPTIONS "OPTIONS"
|
[OPTIONS]: #OPTIONS "OPTIONS"
|
||||||
|
[EXPORT FORMATS]: #EXPORT-FORMATS "EXPORT FORMATS"
|
||||||
|
[INITTAB EXPORT]: #INITTAB-EXPORT "INITTAB EXPORT"
|
||||||
|
[UPSTART EXPORT]: #UPSTART-EXPORT "UPSTART EXPORT"
|
||||||
[PROCFILE]: #PROCFILE "PROCFILE"
|
[PROCFILE]: #PROCFILE "PROCFILE"
|
||||||
[EXAMPLES]: #EXAMPLES "EXAMPLES"
|
[EXAMPLES]: #EXAMPLES "EXAMPLES"
|
||||||
[COPYRIGHT]: #COPYRIGHT "COPYRIGHT"
|
[COPYRIGHT]: #COPYRIGHT "COPYRIGHT"
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = %q{foreman}
|
s.name = %q{foreman}
|
||||||
s.version = "0.5.0"
|
s.version = "0.5.1"
|
||||||
|
|
||||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||||
s.authors = ["David Dollar"]
|
s.authors = ["David Dollar"]
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
module Foreman
|
module Foreman
|
||||||
|
|
||||||
VERSION = "0.5.0"
|
VERSION = "0.5.1"
|
||||||
|
|
||||||
class AppDoesNotExist < Exception; end
|
class AppDoesNotExist < Exception; end
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ require "foreman/process"
|
|||||||
require "pty"
|
require "pty"
|
||||||
require "tempfile"
|
require "tempfile"
|
||||||
require "term/ansicolor"
|
require "term/ansicolor"
|
||||||
|
require "fileutils"
|
||||||
|
|
||||||
class Foreman::Engine
|
class Foreman::Engine
|
||||||
|
|
||||||
|
|||||||
+29
-1
@@ -62,11 +62,39 @@ The following options control how the application is run:
|
|||||||
|
|
||||||
These options control all modes of foreman's operation.
|
These options control all modes of foreman's operation.
|
||||||
|
|
||||||
* `-f`, `--procfile`
|
* `-f`, `--procfile`:
|
||||||
Specify an alternate location for the application's Procfile. This file's
|
Specify an alternate location for the application's Procfile. This file's
|
||||||
containing directory will be assumed to be the root directory of the
|
containing directory will be assumed to be the root directory of the
|
||||||
application.
|
application.
|
||||||
|
|
||||||
|
## EXPORT FORMATS
|
||||||
|
|
||||||
|
foreman currently supports the following output formats:
|
||||||
|
|
||||||
|
* inittab
|
||||||
|
|
||||||
|
* upstart
|
||||||
|
|
||||||
|
## INITTAB EXPORT
|
||||||
|
|
||||||
|
Will export a chunk of inittab-compatible configuration:
|
||||||
|
|
||||||
|
# ----- foreman example processes -----
|
||||||
|
EX01:4:respawn:/bin/su - example -c 'PORT=5000 bundle exec thin start >> /var/log/web-1.log 2>&1'
|
||||||
|
EX02:4:respawn:/bin/su - example -c 'PORT=5100 bundle exec rake jobs:work >> /var/log/job-1.log 2>&1'
|
||||||
|
# ----- end foreman example processes -----
|
||||||
|
|
||||||
|
## UPSTART EXPORT
|
||||||
|
|
||||||
|
Will create a series of upstart scripts in the location you specify. Scripts
|
||||||
|
will be structured to make the following commands valid:
|
||||||
|
|
||||||
|
`start appname`
|
||||||
|
|
||||||
|
`stop appname-processname`
|
||||||
|
|
||||||
|
`restart appname-processname-3`
|
||||||
|
|
||||||
## PROCFILE
|
## PROCFILE
|
||||||
|
|
||||||
A Procfile should contain both a name for the process and the command used
|
A Procfile should contain both a name for the process and the command used
|
||||||
|
|||||||
Reference in New Issue
Block a user