ruby on rails - daemon spawn : gem_original_require : no such file to load --daemon-spawn (Load Error) -


I'm trying to run a daemon process using daemon-span gem. The code for the delayed_delta daemon process is here

  #file - script / dj #! / Usr / bin / env ruby ​​# - * - ruby ​​- * - 'rubygems' is required 'daemon-spawn' RAILS_ROOT = File.expand_path (file). (File: Dima name (__ file__), '..')) Square Pending Joberver ENV ['MIN_PRIORITY'] ,: Maximum_property => ENV ['MAX_PRIORITY']). Start end DEF stop system ("Kill` ​​cat # {RAILS_ROOT} / tmp / delayed_job.pid`") End in the end waiters Spawn! (: Log_file => Add file (RRIR_RO, "log", "delay_log while logged") ,: pid_file => File.join (RAILS_ROOT, 'tmp', 'delayed_job.pid') ,: sync_log => true: Working_dir => RAILS_ROOT)  

This works well in my local machine when I go to

  Ruby Script / DJ Start  
, But when I run it in the cloud server, it throws a strange error

  / usr / lib / ruby ​​/1.8/rubygems/custom_require.rb31:in `gem_original_require ': load There is no such file to do - daemon-spawn (l E Irrr) /usr/lib/ruby/1.8/rubygems/custom_require.rb31: scripts / DJ: Need any idea 4  

? Any help?

It seems that the daemon-spawn gem in the cloud server is not you bundler on Heroku or something else are using it?


Comments