Foreman-Gui is a nifty command line utility for choosing which Foreman services to run. Foreman-Gui works by generating the Procfile based on a template Procfile (usually called FullProcfile). Foreman-Gui works with all Foreman implementations.
Install the command line tool
$ npm install -g foreman-gui
Foreman-gui has a very simple API. It only takes one parameter - the FullProcfile
location. FullProcfile
is a file where all your servies are defined like in a normal Procfile
. Procfile
is generated from your FullProcfile
.
Runs Foreman-gui with the target file FullProcfile
$ fmg
Runs Foreman-gui with a custom target file.
$ fmg custom_procfile_location
After you have generated the Procfile, start foreman normally.
$ foreman
Or using node-foreman
$ nf
The FullProcfile
format is a simple key : command
format:
web: node web_server.js
api: node api_server.js
log: node log_server.js
Each line should contain a separate process.