foreman 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +13 -4
- data/Rakefile +1 -1
- data/export/upstart/master.conf.erb +13 -0
- data/export/upstart/process.conf.erb +5 -0
- data/lib/foreman.rb +1 -1
- metadata +5 -3
data/README.markdown
CHANGED
@@ -15,7 +15,7 @@ format.
|
|
15
15
|
|
16
16
|
## RUNNING
|
17
17
|
|
18
|
-
`foreman start` is used to run your application directly from the command line.
|
18
|
+
`foreman start` is used to run your application directly from the command line.
|
19
19
|
|
20
20
|
If no additional parameters are passed, foreman will run one instance of each
|
21
21
|
type of process defined in your Procfile.
|
@@ -42,10 +42,10 @@ The following options control how the application is run:
|
|
42
42
|
* `-a`, `--app`:
|
43
43
|
Use this name rather than the application's root directory name as the
|
44
44
|
name of the application when exporting.
|
45
|
-
|
45
|
+
|
46
46
|
* `-c`, `--concurrency`:
|
47
47
|
Specify the number of each process type to run. The value passed in
|
48
|
-
should be in the format `process=num,process=num
|
48
|
+
should be in the format `process=num,process=num`
|
49
49
|
|
50
50
|
## OPTIONS
|
51
51
|
|
@@ -56,6 +56,14 @@ These options control all modes of foreman's operation.
|
|
56
56
|
containing directory will be assumed to be the root directory of the
|
57
57
|
application.
|
58
58
|
|
59
|
+
## PROCFILE
|
60
|
+
|
61
|
+
A Procfile should contain both a name for the process and the command used
|
62
|
+
to run it.
|
63
|
+
|
64
|
+
web bundle exec thin start
|
65
|
+
job bundle exec rake jobs:work
|
66
|
+
|
59
67
|
## EXAMPLES
|
60
68
|
|
61
69
|
Start one instance of each process type, interleave the output on stdout:
|
@@ -65,7 +73,7 @@ Start one instance of each process type, interleave the output on stdout:
|
|
65
73
|
Export the application in upstart format:
|
66
74
|
|
67
75
|
$ foreman export upstart /etc/init
|
68
|
-
|
76
|
+
|
69
77
|
Run one process type from the application defined in a specific Procfile:
|
70
78
|
|
71
79
|
$ foreman start alpha -p ~/app/Procfile
|
@@ -80,6 +88,7 @@ Foreman is Copyright (C) 2010 David Dollar <http://daviddollar.org>
|
|
80
88
|
[RUNNING]: #RUNNING "RUNNING"
|
81
89
|
[EXPORTING]: #EXPORTING "EXPORTING"
|
82
90
|
[OPTIONS]: #OPTIONS "OPTIONS"
|
91
|
+
[PROCFILE]: #PROCFILE "PROCFILE"
|
83
92
|
[EXAMPLES]: #EXAMPLES "EXAMPLES"
|
84
93
|
[COPYRIGHT]: #COPYRIGHT "COPYRIGHT"
|
85
94
|
|
data/Rakefile
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
pre-start script
|
2
|
+
|
3
|
+
bash << "EOF"
|
4
|
+
mkdir -p /var/log/<%= app %>
|
5
|
+
|
6
|
+
<% engine.processes.keys.sort.each do |process| %>
|
7
|
+
<% 1.upto(concurrency[process]).each do |num| %>
|
8
|
+
start <%=app%>-<%=process%>-<%=num%>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
EOF
|
12
|
+
|
13
|
+
end script
|
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: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 4
|
10
|
+
version: 0.4.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Dollar
|
@@ -141,6 +141,8 @@ extra_rdoc_files:
|
|
141
141
|
files:
|
142
142
|
- Rakefile
|
143
143
|
- bin/foreman
|
144
|
+
- export/upstart/master.conf.erb
|
145
|
+
- export/upstart/process.conf.erb
|
144
146
|
- lib/foreman.rb
|
145
147
|
- lib/foreman/cli.rb
|
146
148
|
- lib/foreman/configuration.rb
|