Skip to content

Commit 23c2982

Browse files
committed
update docs
1 parent d3a34ed commit 23c2982

File tree

2 files changed

+36
-112
lines changed

2 files changed

+36
-112
lines changed

Changelog.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
## 0.88.0 (2024-04-12)
2+
3+
* use actions/checkout@v4 [David Dollar]
4+
* remove Gemfile.lock from repo because it's too strict [David Dollar]
5+
* update for ci [David Dollar]
6+
* handle empty procfile exception in cli [David Dollar]
7+
* Update man page to reflect recent changes in systemd export [Lukáš Konarovský]
8+
* [engine/cli.rb] Handle nil name_padding [Nick LaMuro]
9+
* [Foreman::Procfile#load] Fail when empty [Nick LaMuro]
10+
* spec_helper: don't try to remove /tmp [Antonio Terceiro]
11+
* Fix misleading comment at the top of procfile.rb that indicates that hyphens "-" are not allowed in process names. [Ben Wilber]
12+
* Rename usage of Dir/File.exists to exist [Qiu Chaofan]
13+
* remove codeclimate [David Dollar]
14+
* clean up and autoformat [David Dollar]
15+
* Add GitHub token permissions for workflow [mishina]
16+
* Migrate from Travis CI to GitHub Actions [mishina]
17+
* Pass a block rather than an argument to `expect` [mishina]
18+
* Replace `File.exists?` with `File.exist?` [mishina]
19+
* Use the latest fakefs [mishina]
20+
* Remove and ignore Gemfile.lock [mishina]
21+
* Add GitHub Actions workflow [mishina]
22+
* GitHub is HTTPS by default [Akira Matsuda]
23+
24+
## 0.87.2 (2020-08-07)
25+
26+
* update json for CVE-2020-10663 [David Dollar]
27+
128
## 0.87.1 (2020-04-02)
229

330
* update rake for CVE-2020-8130 [David Dollar]

man/foreman.1

+9-112
Original file line numberDiff line numberDiff line change
@@ -1,284 +1,181 @@
1-
.\" generated with Ronn/v0.7.3
2-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
3-
.
4-
.TH "FOREMAN" "1" "April 2020" "Foreman 0.87.2" "Foreman Manual"
5-
.
1+
.\" generated with Ronn-NG/v0.10.1
2+
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
3+
.TH "FOREMAN" "1" "April 2024" "Foreman 0.88.0" "Foreman Manual"
64
.SH "NAME"
75
\fBforeman\fR \- manage Procfile\-based applications
8-
.
96
.SH "SYNOPSIS"
107
\fBforeman start [process]\fR
11-
.
128
.br
139
\fBforeman run <command>\fR
14-
.
1510
.br
1611
\fBforeman export <format> [location]\fR
17-
.
1812
.SH "DESCRIPTION"
1913
Foreman 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\.
20-
.
2114
.SH "RUNNING"
2215
\fBforeman start\fR is used to run your application directly from the command line\.
23-
.
2416
.P
2517
If no additional parameters are passed, foreman will run one instance of each type of process defined in your Procfile\.
26-
.
2718
.P
2819
If a parameter is passed, foreman will run one instance of the specified application type\.
29-
.
3020
.P
3121
The following options control how the application is run:
32-
.
3322
.TP
3423
\fB\-m\fR, \fB\-\-formation\fR
3524
Specify the number of each process type to run\. The value passed in should be in the format \fBprocess=num,process=num\fR
36-
.
3725
.TP
3826
\fB\-e\fR, \fB\-\-env\fR
3927
Specify one or more \.env files to load
40-
.
4128
.TP
4229
\fB\-f\fR, \fB\-\-procfile\fR
4330
Specify an alternate Procfile to load, implies \fB\-d\fR at the Procfile root\.
44-
.
4531
.TP
4632
\fB\-p\fR, \fB\-\-port\fR
4733
Specify which port to use as the base for this application\. Should be a multiple of 1000\.
48-
.
4934
.TP
5035
\fB\-t\fR, \fB\-\-timeout\fR
5136
Specify the amount of time (in seconds) processes have to shutdown gracefully before receiving a SIGKILL, defaults to 5\.
52-
.
5337
.P
5438
\fBforeman run\fR is used to run one\-off commands using the same environment as your defined processes\.
55-
.
5639
.SH "EXPORTING"
5740
\fBforeman export\fR is used to export your application to another process management format\.
58-
.
5941
.P
6042
A location to export can be passed as an argument\. This argument may be either required or optional depending on the export format\.
61-
.
6243
.P
6344
The following options control how the application is run:
64-
.
6545
.TP
6646
\fB\-a\fR, \fB\-\-app\fR
67-
Use this name rather than the application\'s root directory name as the name of the application when exporting\.
68-
.
47+
Use this name rather than the application's root directory name as the name of the application when exporting\.
6948
.TP
7049
\fB\-m\fR, \fB\-\-formation\fR
7150
Specify the number of each process type to run\. The value passed in should be in the format \fBprocess=num,process=num\fR
72-
.
7351
.TP
7452
\fB\-l\fR, \fB\-\-log\fR
7553
Specify the directory to place process logs in\.
76-
.
7754
.TP
7855
\fB\-p\fR, \fB\-\-port\fR
7956
Specify which port to use as the base for this application\. Should be a multiple of 1000\.
80-
.
8157
.TP
8258
\fB\-t\fR, \fB\-\-template\fR
8359
Specify an alternate template to use for creating export files\. See \fIhttps://github\.com/ddollar/foreman/tree/master/data/export\fR for examples\.
84-
.
8560
.TP
8661
\fB\-u\fR, \fB\-\-user\fR
8762
Specify the user the application should be run as\. Defaults to the app name
88-
.
8963
.SH "GLOBAL OPTIONS"
90-
These options control all modes of foreman\'s operation\.
91-
.
64+
These options control all modes of foreman's operation\.
9265
.TP
9366
\fB\-d\fR, \fB\-\-root\fR
9467
Specify an alternate application root\. This defaults to the directory containing the Procfile\.
95-
.
9668
.TP
9769
\fB\-e\fR, \fB\-\-env\fR
9870
Specify an alternate environment file\. You can specify more than one file by using: \fB\-\-env file1,file2\fR\.
99-
.
10071
.TP
10172
\fB\-f\fR, \fB\-\-procfile\fR
102-
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\.
103-
.
73+
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\.
10474
.SH "EXPORT FORMATS"
10575
foreman currently supports the following output formats:
106-
.
10776
.IP "\(bu" 4
10877
bluepill
109-
.
11078
.IP "\(bu" 4
11179
inittab
112-
.
11380
.IP "\(bu" 4
11481
launchd
115-
.
11682
.IP "\(bu" 4
11783
runit
118-
.
11984
.IP "\(bu" 4
12085
supervisord
121-
.
12286
.IP "\(bu" 4
12387
systemd
124-
.
12588
.IP "\(bu" 4
12689
upstart
127-
.
12890
.IP "" 0
129-
.
13091
.SH "INITTAB EXPORT"
13192
Will export a chunk of inittab\-compatible configuration:
132-
.
13393
.IP "" 4
134-
.
13594
.nf
136-
13795
# \-\-\-\-\- foreman example processes \-\-\-\-\-
138-
EX01:4:respawn:/bin/su \- example \-c \'PORT=5000 bundle exec thin start >> /var/log/web\-1\.log 2>&1\'
139-
EX02:4:respawn:/bin/su \- example \-c \'PORT=5100 bundle exec rake jobs:work >> /var/log/job\-1\.log 2>&1\'
96+
EX01:4:respawn:/bin/su \- example \-c 'PORT=5000 bundle exec thin start >> /var/log/web\-1\.log 2>&1'
97+
EX02:4:respawn:/bin/su \- example \-c 'PORT=5100 bundle exec rake jobs:work >> /var/log/job\-1\.log 2>&1'
14098
# \-\-\-\-\- end foreman example processes \-\-\-\-\-
141-
.
14299
.fi
143-
.
144100
.IP "" 0
145-
.
146101
.SH "SYSTEMD EXPORT"
147102
Will create a series of systemd scripts in the location you specify\. Scripts will be structured to make the following commands valid:
148-
.
149103
.P
150104
\fBsystemctl start appname\.target\fR
151-
.
152105
.P
153106
\fBsystemctl stop appname\-processname\.target\fR
154-
.
155107
.P
156-
\fBsystemctl restart appname\-processname\.3\.service\fR
157-
.
108+
\fBsystemctl restart appname\-processname\-3\.service\fR
158109
.SH "UPSTART EXPORT"
159110
Will create a series of upstart scripts in the location you specify\. Scripts will be structured to make the following commands valid:
160-
.
161111
.P
162112
\fBstart appname\fR
163-
.
164113
.P
165114
\fBstop appname\-processname\fR
166-
.
167115
.P
168116
\fBrestart appname\-processname\-3\fR
169-
.
170117
.SH "PROCFILE"
171118
A Procfile should contain both a name for the process and the command used to run it\.
172-
.
173119
.IP "" 4
174-
.
175120
.nf
176-
177121
web: bundle exec thin start
178122
job: bundle exec rake jobs:work
179-
.
180123
.fi
181-
.
182124
.IP "" 0
183-
.
184125
.P
185126
A process name may contain letters, numbers and the underscore character\. You can validate your Procfile format using the \fBcheck\fR command:
186-
.
187127
.IP "" 4
188-
.
189128
.nf
190-
191129
$ foreman check
192-
.
193130
.fi
194-
.
195131
.IP "" 0
196-
.
197132
.P
198133
The special environment variables \fB$PORT\fR and \fB$PS\fR are available within the Procfile\. \fB$PORT\fR is the port selected for that process\. \fB$PS\fR is the name of the process for the line\.
199-
.
200134
.P
201135
The \fB$PORT\fR value starts as the base port as specified by \fB\-p\fR, then increments by 100 for each new process line\. Multiple instances of the same process are assigned \fB$PORT\fR values that increment by 1\.
202-
.
203136
.SH "ENVIRONMENT"
204137
If a \fB\.env\fR file exists in the current directory, the default environment will be read from it\. This file should contain key/value pairs, separated by \fB=\fR, with one key/value pair per line\.
205-
.
206138
.IP "" 4
207-
.
208139
.nf
209-
210140
FOO=bar
211141
BAZ=qux
212-
.
213142
.fi
214-
.
215143
.IP "" 0
216-
.
217144
.SH "DEFAULT OPTIONS"
218145
If a \fB\.foreman\fR file exists in the current directory, default options will be read from it\. This file should be in YAML format with the long option name as keys\. Example:
219-
.
220146
.IP "" 4
221-
.
222147
.nf
223-
224148
formation: alpha=0,bravo=1
225149
port: 15000
226-
.
227150
.fi
228-
.
229151
.IP "" 0
230-
.
231152
.SH "EXAMPLES"
232153
Start one instance of each process type, interleave the output on stdout:
233-
.
234154
.IP "" 4
235-
.
236155
.nf
237-
238156
$ foreman start
239-
.
240157
.fi
241-
.
242158
.IP "" 0
243-
.
244159
.P
245160
Export the application in upstart format:
246-
.
247161
.IP "" 4
248-
.
249162
.nf
250-
251163
$ foreman export upstart /etc/init
252-
.
253164
.fi
254-
.
255165
.IP "" 0
256-
.
257166
.P
258167
Run one process type from the application defined in a specific Procfile:
259-
.
260168
.IP "" 4
261-
.
262169
.nf
263-
264170
$ foreman start alpha \-f ~/myapp/Procfile
265-
.
266171
.fi
267-
.
268172
.IP "" 0
269-
.
270173
.P
271174
Start all processes except the one named worker:
272-
.
273175
.IP "" 4
274-
.
275176
.nf
276-
277177
$ foreman start \-m all=1,worker=0
278-
.
279178
.fi
280-
.
281179
.IP "" 0
282-
.
283180
.SH "COPYRIGHT"
284181
Foreman is Copyright (C) 2010 David Dollar \fIhttp://daviddollar\.org\fR

0 commit comments

Comments
 (0)