Reputation: 2889
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
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