Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a258b8dc3 | ||
|
|
eeeef65c88 | ||
|
|
d67a2f4e11 | ||
|
|
ce5c8b4c04 | ||
|
|
9d859dae92 | ||
|
|
04884366b3 | ||
|
|
8c78d1e1ee | ||
|
|
35a5f972fe | ||
|
|
868bc44a4e | ||
|
|
644956db29 | ||
|
|
bd07ed809d | ||
|
|
26bb8995c9 | ||
|
|
7005860c3c |
+13
-4
@@ -15,7 +15,7 @@ format.
|
|||||||
|
|
||||||
## RUNNING
|
## RUNNING
|
||||||
|
|
||||||
`foreman start` is used to run your application directly from the command line.
|
`foreman start` is used to run your application directly from the command line.
|
||||||
|
|
||||||
If no additional parameters are passed, foreman will run one instance of each
|
If no additional parameters are passed, foreman will run one instance of each
|
||||||
type of process defined in your Procfile.
|
type of process defined in your Procfile.
|
||||||
@@ -42,10 +42,10 @@ The following options control how the application is run:
|
|||||||
* `-a`, `--app`:
|
* `-a`, `--app`:
|
||||||
Use this name rather than the application's root directory name as the
|
Use this name rather than the application's root directory name as the
|
||||||
name of the application when exporting.
|
name of the application when exporting.
|
||||||
|
|
||||||
* `-c`, `--concurrency`:
|
* `-c`, `--concurrency`:
|
||||||
Specify the number of each process type to run. The value passed in
|
Specify the number of each process type to run. The value passed in
|
||||||
should be in the format `process=num,process=num`.
|
should be in the format `process=num,process=num`
|
||||||
|
|
||||||
## OPTIONS
|
## OPTIONS
|
||||||
|
|
||||||
@@ -56,6 +56,14 @@ These options control all modes of foreman's operation.
|
|||||||
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.
|
||||||
|
|
||||||
|
## PROCFILE
|
||||||
|
|
||||||
|
A Procfile should contain both a name for the process and the command used
|
||||||
|
to run it.
|
||||||
|
|
||||||
|
web bundle exec thin start
|
||||||
|
job bundle exec rake jobs:work
|
||||||
|
|
||||||
## EXAMPLES
|
## EXAMPLES
|
||||||
|
|
||||||
Start one instance of each process type, interleave the output on stdout:
|
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:
|
|||||||
Export the application in upstart format:
|
Export the application in upstart format:
|
||||||
|
|
||||||
$ foreman export upstart /etc/init
|
$ foreman export upstart /etc/init
|
||||||
|
|
||||||
Run one process type from the application defined in a specific Procfile:
|
Run one process type from the application defined in a specific Procfile:
|
||||||
|
|
||||||
$ foreman start alpha -p ~/app/Procfile
|
$ foreman start alpha -p ~/app/Procfile
|
||||||
@@ -80,6 +88,7 @@ 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"
|
||||||
|
[PROCFILE]: #PROCFILE "PROCFILE"
|
||||||
[EXAMPLES]: #EXAMPLES "EXAMPLES"
|
[EXAMPLES]: #EXAMPLES "EXAMPLES"
|
||||||
[COPYRIGHT]: #COPYRIGHT "COPYRIGHT"
|
[COPYRIGHT]: #COPYRIGHT "COPYRIGHT"
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ begin
|
|||||||
s.platform = Gem::Platform::RUBY
|
s.platform = Gem::Platform::RUBY
|
||||||
s.has_rdoc = false
|
s.has_rdoc = false
|
||||||
|
|
||||||
s.files = %w(Rakefile README.md) + Dir["{bin,lib,spec}/**/*"]
|
s.files = %w(Rakefile README.md) + Dir["{bin,export,lib,spec}/**/*"]
|
||||||
s.require_path = "lib"
|
s.require_path = "lib"
|
||||||
|
|
||||||
# #s.bindir = "bin"
|
# #s.bindir = "bin"
|
||||||
|
|||||||
+3
-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.4.3"
|
s.version = "0.4.4"
|
||||||
|
|
||||||
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"]
|
||||||
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
|
|||||||
s.files = [
|
s.files = [
|
||||||
"Rakefile",
|
"Rakefile",
|
||||||
"bin/foreman",
|
"bin/foreman",
|
||||||
|
"export/upstart/master.conf.erb",
|
||||||
|
"export/upstart/process.conf.erb",
|
||||||
"lib/foreman.rb",
|
"lib/foreman.rb",
|
||||||
"lib/foreman/cli.rb",
|
"lib/foreman/cli.rb",
|
||||||
"lib/foreman/configuration.rb",
|
"lib/foreman/configuration.rb",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
module Foreman
|
module Foreman
|
||||||
|
|
||||||
VERSION = "0.4.3"
|
VERSION = "0.4.4"
|
||||||
|
|
||||||
class AppDoesNotExist < Exception; end
|
class AppDoesNotExist < Exception; end
|
||||||
|
|
||||||
|
|||||||
+12
-4
@@ -15,7 +15,7 @@ format.
|
|||||||
|
|
||||||
## RUNNING
|
## RUNNING
|
||||||
|
|
||||||
`foreman start` is used to run your application directly from the command line.
|
`foreman start` is used to run your application directly from the command line.
|
||||||
|
|
||||||
If no additional parameters are passed, foreman will run one instance of each
|
If no additional parameters are passed, foreman will run one instance of each
|
||||||
type of process defined in your Procfile.
|
type of process defined in your Procfile.
|
||||||
@@ -42,10 +42,10 @@ The following options control how the application is run:
|
|||||||
* `-a`, `--app`:
|
* `-a`, `--app`:
|
||||||
Use this name rather than the application's root directory name as the
|
Use this name rather than the application's root directory name as the
|
||||||
name of the application when exporting.
|
name of the application when exporting.
|
||||||
|
|
||||||
* `-c`, `--concurrency`:
|
* `-c`, `--concurrency`:
|
||||||
Specify the number of each process type to run. The value passed in
|
Specify the number of each process type to run. The value passed in
|
||||||
should be in the format `process=num,process=num`.
|
should be in the format `process=num,process=num`
|
||||||
|
|
||||||
## OPTIONS
|
## OPTIONS
|
||||||
|
|
||||||
@@ -56,6 +56,14 @@ These options control all modes of foreman's operation.
|
|||||||
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.
|
||||||
|
|
||||||
|
## PROCFILE
|
||||||
|
|
||||||
|
A Procfile should contain both a name for the process and the command used
|
||||||
|
to run it.
|
||||||
|
|
||||||
|
web bundle exec thin start
|
||||||
|
job bundle exec rake jobs:work
|
||||||
|
|
||||||
## EXAMPLES
|
## EXAMPLES
|
||||||
|
|
||||||
Start one instance of each process type, interleave the output on stdout:
|
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:
|
|||||||
Export the application in upstart format:
|
Export the application in upstart format:
|
||||||
|
|
||||||
$ foreman export upstart /etc/init
|
$ foreman export upstart /etc/init
|
||||||
|
|
||||||
Run one process type from the application defined in a specific Procfile:
|
Run one process type from the application defined in a specific Procfile:
|
||||||
|
|
||||||
$ foreman start alpha -p ~/app/Procfile
|
$ foreman start alpha -p ~/app/Procfile
|
||||||
|
|||||||
Reference in New Issue
Block a user