lib/generators/daemon_kit/app/templates/config/environment.rb.tt
# Be sure to restart your daemon when you modify this file
# Uncomment below to force your daemon into production mode
#ENV['DAEMON_ENV'] ||= 'production'
# Boot up
require File.join(File.dirname(__FILE__), 'boot')
# Auto-require default libraries and those for the current ruby environment.
Bundler.require :default, DaemonKit.env
DaemonKit::Initializer.run do |config|
# The name of the daemon as reported by process monitoring tools
config.daemon_name = '<%= app_name %>'
# Force the daemon to be killed after X seconds from asking it to
# config.force_kill_wait = 30
# Log backraces when a thread/daemon dies (Recommended)
# config.backtraces = true
end