3 ms·
BTW do people use tmux/screen to start multiple apps for development? I'm looking for a way to start nginx/sass watcher/js builder/web app in a split screen, a
by swah 12y ago
BTW do people use tmux/screen to start multiple apps for development?
I'm looking for a way to start nginx/sass watcher/js builder/web app in a split screen, and also stop them all with one command (which would send ctrl-c to all windows). Now I just use tabs (OSX).
- tlunter 12y agoThis is the use case of Foreman. https://github.com/ddollar/foreman https://github.com/ddollar/foreman
- crymer11 12y agoor Goreman. https://github.com/mattn/goreman https://github.com/mattn/goreman
- swah 12y agoThanks for all replies. I tested this before the tmux solution, and I must say I'm impressed. Ctrl-c worked like I was running a single app: 16:44:33 scss | QUIT 16:44:33 webpack | QUIT 16:44:33 nginx | QUIT 16:44:33 go | QUIT This was better than expected! I suppose tmux will be preferable if one of the apps is slow to start and must be killed individually.
- joeroot 12y agoor Forego! https://github.com/ddollar/forego https://github.com/ddollar/forego
- swah 12y agoAfter using Goreman for a few days, I miss a way to restart a single process. Maybe just typing that process number should restart it... do you know if any of the solution do this?
- Hates_ 12y agoI use tmuxinator to launch services I need, then I just kill the session when I'm done. https://github.com/tmuxinator/tmuxinator https://github.com/tmuxinator/tmuxinator
- brianmcd 12y agoCheck out tmuxinator: https://github.com/tmuxinator/tmuxinator https://github.com/tmuxinator/tmuxinator. You can create configurations for your projects that specify windows, panes, which apps to run, etc. It's great for starting all the servers/shells/workers required for a project.
- JelteF 12y agoI just use a shell script based on this SO answer. https://stackoverflow.com/questions/9023164/in-bash-how-can-i-run-multiple-infinitely-running-commands-and-cancel-them-all https://stackoverflow.com/questions/9023164/in-bash-how-can-... The only sort of problem with it is that the output gets merged with each other. You can quite easily figure out what is what though.
- swah 12y agoSee the goreman solution below: its similar but each output line has its app prefixed.
- kapilvt 12y agoyes.. http://devstack.org http://devstack.org for openstack, does a ~20 window screen session with all the servers attached to the foreground.
- darkr 12y agoI find teamocil[1] for this use case, usually with one window opening a vimsplit of TODO, README, CHANGELOG etc, one window to launch a vagrant machine (which then runs all the daemons), another for guard/rspec output, and other windows for key files currently being worked on. 1: https://github.com/remiprev/teamocil https://github.com/remiprev/teamocil