Test Test
Test Test

Reputation: 2889

rake jobs:work Each time I start my server?

I am using delayed jobs, because I have some long running processes running in the background. The annoying part is that I need to run 'rake jobs:work' before I start my application everytime. Is there any way to let my Rails application know that I want it to start every time I restart my server? or refresh my homepage?

Upvotes: 0

Views: 267

Answers (1)

lscott3
lscott3

Reputation: 106

Is this on your local machine? If so, you could just set an alias that you could run that would run 'rake jobs:work' when you use the alias. For example:

alias startserver='rake jobs:work & rails s'

Upvotes: 2

Related Questions