2017-10-07 02:02:51 -07:00
|
|
|
# foreman
|
|
|
|
|
2017-10-14 20:58:16 -07:00
|
|
|
> Manage Procfile-based applications.
|
2021-07-09 16:45:55 +02:00
|
|
|
> More information: <https://manned.org/foreman>.
|
2017-10-07 02:02:51 -07:00
|
|
|
|
2017-10-14 20:58:16 -07:00
|
|
|
- Start an application with the Procfile in the current directory:
|
2017-10-07 11:54:14 -07:00
|
|
|
|
|
|
|
`foreman start`
|
|
|
|
|
2017-10-07 16:39:03 -07:00
|
|
|
- Start an application with a specified Procfile:
|
|
|
|
|
|
|
|
`foreman start -f {{Procfile}}`
|
|
|
|
|
2017-10-07 11:54:14 -07:00
|
|
|
- Start a specific application:
|
2017-10-07 02:02:51 -07:00
|
|
|
|
|
|
|
`foreman start {{process}}`
|
|
|
|
|
2017-10-07 11:54:14 -07:00
|
|
|
- Validate Procfile format:
|
|
|
|
|
|
|
|
`foreman check`
|
|
|
|
|
2017-10-07 02:02:51 -07:00
|
|
|
- Run one-off commands with the process's environment:
|
|
|
|
|
|
|
|
`foreman run {{command}}`
|
|
|
|
|
2017-10-15 18:50:59 +05:30
|
|
|
- Start all processes except the one named "worker":
|
2017-10-07 02:02:51 -07:00
|
|
|
|
2017-10-15 18:50:59 +05:30
|
|
|
`foreman start -m all=1,{{worker}}=0`
|