Open russkuhn opened 11 years ago
Exec touch log/simple_daemon.rb.log
before Daemons::Rails.run config[:script], config.to_hash
.
Set config[:logfilename] = "#{ENV['RAILS_ENV'] || 'development'}.log"
before Daemons::Rails.run config[:script], config.to_hash
.
had same issues. This solved my problem :D Thank you very much
Just installed this gem and I love what it does. Thank you for creating it. Using just the simple_daemon created by your generator, when I start the daemon everything is fine, logging every 10 seconds. But when I stop it (
./lib/daemons/simple_daemon_ctl stop
), it creates the log filelog/simple_daemon.rb.log
containing the errors:The only change I made to the generated code was commenting out
Rails.logger.auto_flushing = true
because I use log4r. Everything seems to work, but it would be better not to have errors in the log file.I'm using rvm, ruby 2.0.0p247, and Rails 4.0.0.
-Russ