[Backgroundrb-devel] Start script not working when run via Rake

Jason LaPier jason.lapier at gmail.com
Thu Jan 3 11:29:51 EST 2008

On Jan 3, 2008 7:03 AM, Olly Lylo <list at lylo.co.uk> wrote:
> Hi there
> I'm using the latest release (r300) and 'script/backgroundrb start' works
> perfectly when executed on the server, but when put inside a Rake task, it
> doesn't launch the worker processes.
> The Rake task is as follows:
> task :start_backgroundrb do
>   run "cd #{current_path} && ./script/backgroundrb start"
> end

I don't know much about rake, but I think you want to use 'sh' instead of 'run'.

- Jason L.

My Rails and Linux Blog: http://offtheline.net

More information about the Backgroundrb-devel mailing list