foreman 0.4.2 → 0.4.3
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 +87 -0
- data/Rakefile +3 -0
- data/lib/foreman.rb +1 -1
- metadata +5 -5
- data/README.rdoc +0 -85
data/README.markdown
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
foreman(1) -- manage Procfile-based applications
|
2
|
+
================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`foreman start [process]`<br>
|
7
|
+
`foreman export <var>format</var> [location]`
|
8
|
+
|
9
|
+
## DESCRIPTION
|
10
|
+
|
11
|
+
**Foreman** is a manager for Procfile-based applications. Its aim is to
|
12
|
+
abstract away the details of the Procfile format, and allow you to either run
|
13
|
+
your application directly or export it to some other process management
|
14
|
+
format.
|
15
|
+
|
16
|
+
## RUNNING
|
17
|
+
|
18
|
+
`foreman start` is used to run your application directly from the command line.
|
19
|
+
|
20
|
+
If no additional parameters are passed, foreman will run one instance of each
|
21
|
+
type of process defined in your Procfile.
|
22
|
+
|
23
|
+
If a parameter is passed, foreman will run one instance of the specified
|
24
|
+
application type.
|
25
|
+
|
26
|
+
The following options control how the application is run:
|
27
|
+
|
28
|
+
* `-s`, `--screen`:
|
29
|
+
Run the application as a series of screen windows rather than interleaved
|
30
|
+
in stdout.
|
31
|
+
|
32
|
+
## EXPORTING
|
33
|
+
|
34
|
+
`foreman export` is used to export your application to another process
|
35
|
+
management format.
|
36
|
+
|
37
|
+
An location to export can be passed as an argument. This argument may be
|
38
|
+
either required or optional depending on the export format.
|
39
|
+
|
40
|
+
The following options control how the application is run:
|
41
|
+
|
42
|
+
* `-a`, `--app`:
|
43
|
+
Use this name rather than the application's root directory name as the
|
44
|
+
name of the application when exporting.
|
45
|
+
|
46
|
+
* `-c`, `--concurrency`:
|
47
|
+
Specify the number of each process type to run. The value passed in
|
48
|
+
should be in the format `process=num,process=num`.
|
49
|
+
|
50
|
+
## OPTIONS
|
51
|
+
|
52
|
+
These options control all modes of foreman's operation.
|
53
|
+
|
54
|
+
* `-p`, `--procfile`
|
55
|
+
Specify an alternate location for the application's Procfile. This file's
|
56
|
+
containing directory will be assumed to be the root directory of the
|
57
|
+
application.
|
58
|
+
|
59
|
+
## EXAMPLES
|
60
|
+
|
61
|
+
Start one instance of each process type, interleave the output on stdout:
|
62
|
+
|
63
|
+
$ foreman start
|
64
|
+
|
65
|
+
Export the application in upstart format:
|
66
|
+
|
67
|
+
$ foreman export upstart /etc/init
|
68
|
+
|
69
|
+
Run one process type from the application defined in a specific Procfile:
|
70
|
+
|
71
|
+
$ foreman start alpha -p ~/app/Procfile
|
72
|
+
|
73
|
+
## COPYRIGHT
|
74
|
+
|
75
|
+
Foreman is Copyright (C) 2010 David Dollar <http://daviddollar.org>
|
76
|
+
|
77
|
+
|
78
|
+
[SYNOPSIS]: #SYNOPSIS "SYNOPSIS"
|
79
|
+
[DESCRIPTION]: #DESCRIPTION "DESCRIPTION"
|
80
|
+
[RUNNING]: #RUNNING "RUNNING"
|
81
|
+
[EXPORTING]: #EXPORTING "EXPORTING"
|
82
|
+
[OPTIONS]: #OPTIONS "OPTIONS"
|
83
|
+
[EXAMPLES]: #EXAMPLES "EXAMPLES"
|
84
|
+
[COPYRIGHT]: #COPYRIGHT "COPYRIGHT"
|
85
|
+
|
86
|
+
|
87
|
+
[foreman(1)]: foreman.1.html
|
data/Rakefile
CHANGED
@@ -29,6 +29,9 @@ task :man do
|
|
29
29
|
ENV['RONN_MANUAL'] = "Foreman Manual"
|
30
30
|
ENV['RONN_ORGANIZATION'] = "Foreman #{Foreman::VERSION}"
|
31
31
|
sh "ronn -w -s toc -r5 --markdown man/*.ronn"
|
32
|
+
sh "cp man/foreman.1.markdown README.markdown"
|
33
|
+
sh "git add README.markdown"
|
34
|
+
sh "git commit -m 'update readme' || echo 'nothing to commit'"
|
32
35
|
end
|
33
36
|
|
34
37
|
task :pages => :man do
|
data/lib/foreman.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
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Dollar
|
@@ -137,7 +137,7 @@ executables:
|
|
137
137
|
extensions: []
|
138
138
|
|
139
139
|
extra_rdoc_files:
|
140
|
-
- README.
|
140
|
+
- README.markdown
|
141
141
|
files:
|
142
142
|
- Rakefile
|
143
143
|
- bin/foreman
|
@@ -157,7 +157,7 @@ files:
|
|
157
157
|
- spec/foreman/process_spec.rb
|
158
158
|
- spec/foreman_spec.rb
|
159
159
|
- spec/spec_helper.rb
|
160
|
-
- README.
|
160
|
+
- README.markdown
|
161
161
|
has_rdoc: false
|
162
162
|
homepage: http://github.com/ddollar/foreman
|
163
163
|
licenses: []
|
data/README.rdoc
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
= Foreman
|
2
|
-
|
3
|
-
== Procfile
|
4
|
-
|
5
|
-
alpha ./bin/alpha
|
6
|
-
bravo ./bin/bravo some args
|
7
|
-
charlie ./bin/charlie -n 5
|
8
|
-
|
9
|
-
== Development mode
|
10
|
-
|
11
|
-
=== Running
|
12
|
-
|
13
|
-
Log files will be output to standard out, colorized to aid in visual separation.
|
14
|
-
|
15
|
-
$ foreman start
|
16
|
-
[01:27:08] [alpha] started with pid 4393
|
17
|
-
[01:27:08] [bravo] started with pid 4394
|
18
|
-
[01:27:08] [charlie] started with pid 4395
|
19
|
-
[01:27:08] [bravo] initializing...
|
20
|
-
[01:27:08] [bravo] complete
|
21
|
-
|
22
|
-
=== Using Screen
|
23
|
-
|
24
|
-
Launch the processes in a screen session in indivudal windows
|
25
|
-
|
26
|
-
$ foreman screen
|
27
|
-
|
28
|
-
== Single Process Execution
|
29
|
-
|
30
|
-
$ foreman execute alpha
|
31
|
-
|
32
|
-
== Exporting to Upstart
|
33
|
-
|
34
|
-
=== Export to upstart scripts
|
35
|
-
|
36
|
-
$ foreman export sampleapp
|
37
|
-
|
38
|
-
$ initctl list | grep sampleapp
|
39
|
-
sampleapp start/running
|
40
|
-
sampleapp-alpha (1) start/running, process 4204
|
41
|
-
sampleapp-bravo (1) start/running, process 4589
|
42
|
-
sampleapp-charlie (1) start/running, process 4597
|
43
|
-
|
44
|
-
=== Change process concurrency levels
|
45
|
-
|
46
|
-
$ foreman scale sampleapp alpha 4
|
47
|
-
sampleapp-alpha (2) start/running, process 4164
|
48
|
-
sampleapp-alpha (3) start/running, process 4166
|
49
|
-
sampleapp-alpha (4) start/running, process 4168
|
50
|
-
|
51
|
-
$ initctl list | grep sampleapp
|
52
|
-
sampleapp start/running
|
53
|
-
sampleapp-alpha (4) start/running, process 4168
|
54
|
-
sampleapp-alpha (3) start/running, process 4166
|
55
|
-
sampleapp-alpha (2) start/running, process 4164
|
56
|
-
sampleapp-alpha (1) start/running, process 4204
|
57
|
-
sampleapp-bravo (1) start/running, process 4589
|
58
|
-
sampleapp-charlie (1) start/running, process 4597
|
59
|
-
|
60
|
-
$ foreman scale sampleapp alpha 1
|
61
|
-
sampleapp-alpha stop/waiting
|
62
|
-
sampleapp-alpha stop/waiting
|
63
|
-
sampleapp-alpha stop/waiting
|
64
|
-
|
65
|
-
=== Good Upstart citizen
|
66
|
-
|
67
|
-
All Upstart commands work as expected
|
68
|
-
|
69
|
-
$ start sampleapp
|
70
|
-
$ stop sampleapp
|
71
|
-
$ restart sampleapp
|
72
|
-
|
73
|
-
=== Standardized Logging
|
74
|
-
|
75
|
-
/var/log/sampleapp/alpha.log
|
76
|
-
/var/log/sampleapp/bravo.log
|
77
|
-
/var/log/sampleapp/charlie.log
|
78
|
-
|
79
|
-
== License
|
80
|
-
|
81
|
-
MIT
|
82
|
-
|
83
|
-
== Copyright
|
84
|
-
|
85
|
-
(c) 2010 David Dollar
|