It is a foreman implementation in GO.
Foreman is a manager for Procfile-based applications. Its aim is to abstract away the details of the Procfile format, and allow you to run your services directly.
- Run procfile-backed apps.
- Able to run with dependency resolution.
Procfile is simply
key: value format like:
service_ping: cmd: ping -c 20 google.com checks: cmd: ps aux | grep google deps: - service_redis service_sleep: cmd: sleep infinity checks: cmd: sleep 1 deps: - service_ping service_redis: cmd: redis-server --port 6010 run_once: true checks: cmd: redis-cli -p 6010 ping
Here we defined two services
redis with check commands and dependency matrix
How to use
First: modify the procfile with processes or services you want to run.
second: simply run with command:
go run *.go