Sha256: 5e8426738d1149f9e97bdd30c70285d664801b0c9e0fafea83be80707da93cd9
Contents?: true
Size: 949 Bytes
Versions: 2
Compression:
Stored size: 949 Bytes
Contents
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' JUGGERNAUT_PID_FILE = "tmp/pids/juggernaut.pid" def kill_juggernaut return unless File.exist?(JUGGERNAUT_PID_FILE) system("kill #{File.read(JUGGERNAUT_PID_FILE).strip}") system("rm #{JUGGERNAUT_PID_FILE}") end def juggernaut_config_file return "config/juggernaut.yml" if File.exist?("config/juggernaut.yml") "config/juggernaut/#{ENV['RAILS_ENV'] || "development"}.yml" end def start_juggernaut kill_juggernaut system("juggernaut -d -P #{JUGGERNAUT_PID_FILE} -c #{juggernaut_config_file} -l log/juggernaut.log") end def start_autospec fork do require File.dirname(__FILE__) + '/../config/boot' require File.dirname(__FILE__) + '/../config/environment' require File.join(Rio::LIB_ROOT, "autospec") AutoSpec.run end end def start_server system("script/server #{ARGV}") end start_juggernaut start_autospec start_server kill_juggernaut
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riojs-0.0.2 | install/script/rio_server |
riojs-0.0.1 | install/script/rio_server |