Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).



Check out 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.


This is the use case of Foreman. https://github.com/ddollar/foreman



Thanks 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.



After 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?


I just use a shell script based on this SO answer. 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.


See the goreman solution below: its similar but each output line has its app prefixed.


I 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


I use tmuxinator to launch services I need, then I just kill the session when I'm done.

https://github.com/tmuxinator/tmuxinator


yes.. http://devstack.org for openstack, does a ~20 window screen session with all the servers attached to the foreground.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: