Sha256: 6d8089c1bba63683b1b161fa823766af3733a6acac88433bccfa6cc641e53b1c
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 Bytes
Contents
#!/bin/env ruby raise "this script is meant to be ran from inside of a Rails.root" unless File.exist?("config/environment.rb") require 'rubygems' require 'daemons' require 'pathname' gem_home = Pathname.new(__FILE__) + "../.." app_home = Pathname.new(Dir.getwd) Daemons.run_proc("dispatch_rider", :log_output => true, :dir_mode => :normal, :log_dir => (app_home + "log").to_s, :dir => (app_home + "log").to_s) do Dir.chdir(app_home.to_s) do require "./config/environment" Rails.application.config.dispatch_rider.process end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dispatch-rider-0.0.4 | bin/dispatch_rider |
dispatch-rider-0.0.3 | bin/dispatch_rider |