- Notifications
You must be signed in to change notification settings - Fork2
Manage Procfile-based applications
License
pirj/toreman
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
In a running tmux session, from a directory containingProcfile
, runtoreman
.It will parse yourProcfile
and run each entry in a separate split.
Use C-b h/j to navigate between panes, and C-b z to toggle full-screen zoom.
It’s possible to specify a layout as a first argument totoreman
, e.g.
toreman even-vertical
Available layouts are:even-horizontal
,even-vertical
,main-horizontal
,main-vertical
,tiled
(default).
If you’re on macOS and are usingHomebrew, it’s as easy as:
brew install pirj/homebrew-toreman/toreman
Otherwise, drop thetoreman
binary somewhere on your$PATH
, or add an alias in yourrc
file:
alias toreman="grep --invert-match '#' < Procfile | sed -e 's/^[^:]*: //' | xargs -I {} tmux split-window -v \; send-keys '[ -s .env ] && source .env; {}' 'C-m' && tmux select-pane -t 1 \; send-keys 'C-d' \; select-layout${1:-tiled}"
Check outovermind if you prefer 1600 lines of Go over one line of shell script, or otherForeman ports.
Phil Pirozhkov, software developer in law.
About
Manage Procfile-based applications