Note that there are some explanatory texts on larger screens.

plurals
  1. POrvm monit delayed_job
    primarykey
    data
    text
    <p>I am trying to run delayed_job using monit, but its failing to run as rvm's paths (local rvm installation per user basis) are not available to the command. My application is a rails2 app with bundler. Monit is not able to find bundler. Does anyone have any suggestions as to how i can tell about the rvm paths to monit?</p> <p>I am getting the error</p> <pre><code>[rails@x-rws1 current]$ monit start delayed_job -c config/delayed_job.monitrc 'delayed_job' start: /usr/bin/env 'delayed_job' failed to start no such file to load -- bundler /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/rails/public_html/myapp/current/config/../config/preinitializer.rb:3 /home/rails/public_html/myapp/current/config/boot.rb:28:in `load' /home/rails/public_html/myapp/current/config/boot.rb:28:in `preinitialize' /home/rails/public_html/myapp/current/config/boot.rb:10:in `boot!' /home/rails/public_html/myapp/current/config/boot.rb:123 /home/rails/public_html/myapp/current/config/environment.rb:12:in `require' /home/rails/public_html/myapp/current/config/environment.rb:12 /home/rails/public_html/myapp/current/script/delayed_job:3:in `require' /home/rails/public_html/myapp/current/script/delayed_job:3 </code></pre> <p>My config/delayed_job.monitrc</p> <pre><code>set daemon 120 check process delayed_job with pidfile /home/rails/public_html/myapp/shared/pids/delayed_job.pid start program = "/usr/bin/env RAILS_ENV=staging /home/rails/public_html/myapp/current/script/delayed_job start" stop program = "/usr/bin/env RAILS_ENV=staging /home/rails/public_html/myapp/current/script/delayed_job stop" </code></pre> <p>and script/delayed_job executable</p> <pre><code>#!/usr/bin/env ruby require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment')) require 'delayed/command' Delayed::Command.new(ARGV).daemonize </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload