foreman 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +32 -1
- data/lib/foreman.rb +1 -1
- data/lib/foreman/engine.rb +1 -0
- metadata +3 -3
data/README.markdown
CHANGED
@@ -62,11 +62,39 @@ The following options control how the application is run:
|
|
62
62
|
|
63
63
|
These options control all modes of foreman's operation.
|
64
64
|
|
65
|
-
* `-f`, `--procfile
|
65
|
+
* `-f`, `--procfile`:
|
66
66
|
Specify an alternate location for the application's Procfile. This file's
|
67
67
|
containing directory will be assumed to be the root directory of the
|
68
68
|
application.
|
69
69
|
|
70
|
+
## EXPORT FORMATS
|
71
|
+
|
72
|
+
foreman currently supports the following output formats:
|
73
|
+
|
74
|
+
* inittab
|
75
|
+
|
76
|
+
* upstart
|
77
|
+
|
78
|
+
## INITTAB EXPORT
|
79
|
+
|
80
|
+
Will export a chunk of inittab-compatible configuration:
|
81
|
+
|
82
|
+
# ----- foreman example processes -----
|
83
|
+
EX01:4:respawn:/bin/su - example -c 'PORT=5000 bundle exec thin start >> /var/log/web-1.log 2>&1'
|
84
|
+
EX02:4:respawn:/bin/su - example -c 'PORT=5100 bundle exec rake jobs:work >> /var/log/job-1.log 2>&1'
|
85
|
+
# ----- end foreman example processes -----
|
86
|
+
|
87
|
+
## UPSTART EXPORT
|
88
|
+
|
89
|
+
Will create a series of upstart scripts in the location you specify. Scripts
|
90
|
+
will be structured to make the following commands valid:
|
91
|
+
|
92
|
+
`start appname`
|
93
|
+
|
94
|
+
`stop appname-processname`
|
95
|
+
|
96
|
+
`restart appname-processname-3`
|
97
|
+
|
70
98
|
## PROCFILE
|
71
99
|
|
72
100
|
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>
|
|
99
127
|
[RUNNING]: #RUNNING "RUNNING"
|
100
128
|
[EXPORTING]: #EXPORTING "EXPORTING"
|
101
129
|
[OPTIONS]: #OPTIONS "OPTIONS"
|
130
|
+
[EXPORT FORMATS]: #EXPORT-FORMATS "EXPORT FORMATS"
|
131
|
+
[INITTAB EXPORT]: #INITTAB-EXPORT "INITTAB EXPORT"
|
132
|
+
[UPSTART EXPORT]: #UPSTART-EXPORT "UPSTART EXPORT"
|
102
133
|
[PROCFILE]: #PROCFILE "PROCFILE"
|
103
134
|
[EXAMPLES]: #EXAMPLES "EXAMPLES"
|
104
135
|
[COPYRIGHT]: #COPYRIGHT "COPYRIGHT"
|
data/lib/foreman.rb
CHANGED
data/lib/foreman/engine.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Dollar
|