Created
April 13, 2010 00:55
-
-
Save onsails/364197 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require File.dirname(__FILE__) + '/../config/boot' | |
require "#{RAILS_ROOT}/config/environment" | |
File.open "log/daemon.log", "w" if !File.exists? "log/daemon.log" | |
Daemon.spawn! :log_file => "#{RAILS_ROOT}/log/daemon.log", | |
:pid_file => "#{RAILS_ROOT}/tmp/pids/daemon.pid", | |
:sync_log => true, | |
:working_dir => RAILS_ROOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment