[Cialug] Starting two jobs at once
Matthew Nuzum
newz at bearfruit.org
Tue Nov 27 21:19:05 CST 2012
On Nov 27, 2012, at 6:26 PM, Eric Junker <eric at eric.nu> wrote:
> On 11/27/2012 2:35 PM, Matthew Nuzum wrote:
>> As it turns out, some of my projects are getting more complex because
>> instead of just launching a web server they might also need to launch
>> more than one process to serve an app.
>
> Foerman http://ddollar.github.com/foreman/ is a tool that launches programs defined in a Procfile. What is a Procfile? It is just a file that lists all the commands you need to run for your app.
>
> Here is an example Procfile:
> compass: compass watch static
> db: postgres -D /usr/local/var/postgres
> redis: redis-server /usr/local/etc/redis.conf
> web: python ranking/manage.py runserver
>
> Then you would just run "foreman start" and it would start up all programs.
Wow, that looks very powerful and appears to be designed for precisely the kind of thing I'm trying to do. Thanks, I will look into it. The simplicity of the Makefile is tough to beat but the features here are very compelling.
--
Matthew Nuzum
newz2000 on freenode, skype, linkedin and twitter
♫ You're never fully dressed without a smile! ♫
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4136 bytes
Desc: not available
URL: <http://cialug.org/pipermail/cialug/attachments/20121127/eabc7d20/attachment.bin>
More information about the Cialug
mailing list