Capistrano & delayed_job With Rails 4

C

If you’ve tried deploying your Rails 4 app using Capistrano, and you happen to also be using the delayed_job gem, you may have encountered a problem.

bash: script/delayed_job: No such file or directory

The solution is actually quite simple. Rails 4 uses the bin directory in place of the script directory, so add this to your deploy.rb file:

set :delayed_job_command, "bin/delayed_job"

Done.

About the author

Orlando

I'm a software developer by day, and writer by night. I also write code at night, and occasionally words by day. Really, the main takeaway is I enjoy typing on a keyboard a lot.

Add Comment

By Orlando

Orlando

I'm a software developer by day, and writer by night. I also write code at night, and occasionally words by day. Really, the main takeaway is I enjoy typing on a keyboard a lot.

Get in touch

You can find me on Github and Goodreads.

Fork me on GitHub

Recent Posts

Recent Comments

Archives

Categories