I can't run my Rails application with daemons gem
问题 I want to use Daemons gem with my Rails project so I can easily monitore it with Monit, this gem will allow me to create PIDs and use commands like start and stop . Anyways it seems I can't use it with rails somehow, I create a file and named it admin : require 'rubygems' require 'daemons' ROOT_PATH = File.expand_path("#{File.dirname __FILE__}/../") require "#{ROOT_PATH}/config/environment" Daemons.run("#{ROOT_PATH}/script/rails" , :dir_mode => :system, :log_output => true ) When I try to run