Search code examples
ruby-on-railsrubybatch-filecapistranothin

Starting multiple instances of Thin Server on Windows with a batch script


I'm writing a script to automatically deploy a ruby on rails application in Windows. I have everything automated except for the thin cluster startup; it turns out that daemonizing is not supported in Windows so I cannot use the -servers command when calling thin.

A previous question I posted: Starting a Thin cluster on Windows

I'm now looking for an alternative approach to getting three instances up programatically. Does anyone know how I might be able to accomplish this?

Thanks for your time!


Solution

  • start is your friend

    read help start and try this

    start /b thin start
    

    and read again help start and play with other options