lib/generators/templates/script.rb in daemons-rails-0.0.3 vs lib/generators/templates/script.rb in daemons-rails-1.0.0

- old
+ new

@@ -1,10 +1,10 @@ #!/usr/bin/env ruby # You might want to change this ENV["RAILS_ENV"] ||= "production" -require File.dirname(__FILE__) + "/../../config/environment" +require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "config", "environment")) $running = true Signal.trap("TERM") do $running = false end \ No newline at end of file