Foreman has quickly turned into a must-have gem for local development for me.
From @ddollar’s description of Foreman:
Using foreman you can declare the various processes that are needed to run your application using a Procfile.
Besides the normal processes (rails, workers, etc.) I’ve found great success running log tailing and watchr through Foreman. Here’s what my current Procfile looks like:
If your development pattern is anything like mine, it looks like:
- Edit a test, model or controller: check watchr output
- Edit a view, js or scss file: refresh the browser
Here’s what that looks like through Foreman:
<p> <a href="http://britg.com.s3.amazonaws.com/foreman_output.png" rel="facebox"><img src="http://britg.com.s3.amazonaws.com/foreman_output.png" style="width:600px;" /></a> </p> <p> This works well with watchr and log tailing output, as they rarely overlap. Even if they do, finding the appropriate output is easy with Foreman’s prepending of the process name and timestamp. </p> <p> Have any other tips/tricks with Foreman? Let me know! </p>