2017-10-07 12:02:51 +03:00
|
|
|
# foreman
|
|
|
|
|
2017-10-15 06:58:16 +03:00
|
|
|
> Manage Procfile-based applications.
|
2017-10-07 12:02:51 +03:00
|
|
|
|
2017-10-15 06:58:16 +03:00
|
|
|
- Start an application with the Procfile in the current directory:
|
2017-10-07 21:54:14 +03:00
|
|
|
|
|
|
|
`foreman start`
|
|
|
|
|
2017-10-08 02:39:03 +03:00
|
|
|
- Start an application with a specified Procfile:
|
|
|
|
|
|
|
|
`foreman start -f {{Procfile}}`
|
|
|
|
|
2017-10-07 21:54:14 +03:00
|
|
|
- Start a specific application:
|
2017-10-07 12:02:51 +03:00
|
|
|
|
|
|
|
`foreman start {{process}}`
|
|
|
|
|
2017-10-07 21:54:14 +03:00
|
|
|
- Validate Procfile format:
|
|
|
|
|
|
|
|
`foreman check`
|
|
|
|
|
2017-10-07 12:02:51 +03:00
|
|
|
- Run one-off commands with the process's environment:
|
|
|
|
|
|
|
|
`foreman run {{command}}`
|
|
|
|
|
2017-10-15 16:20:59 +03:00
|
|
|
- Start all processes except the one named "worker":
|
2017-10-07 12:02:51 +03:00
|
|
|
|
2017-10-15 16:20:59 +03:00
|
|
|
`foreman start -m all=1,{{worker}}=0`
|