ruby-on-railsrubydelayed-job

bundler: not executable: script/delayed_job


I'm trying to run the following command on my remote server (either via capistrano or ssh):

bundle exec RAILS_ENV=production script/delayed_job start

But I'm getting this error message: bundler: not executable: script/delayed_job

Never saw this before, and google had nothing for me. Any idea what might be the problem?


Solution

  • Maybe it does not have permissions to run? Try running this command

    chmod +x script/delayed_job
    

    and then executing the file again.