Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 36 lines (27 sloc) 0.668 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
#!/usr/bin/env ruby
# coding: utf-8

# Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
# License: New BSD License

$KCODE = "u" if RUBY_VERSION < "1.9.0"
$LOAD_PATH << "."
$LOAD_PATH << "./lib"
Thread.abort_on_exception = true

require "rubygems"
require "bundler/setup"

require "logger"
require "fileutils"

require "daemons"

require "tss_web_server"
require "tss_em_web_socket_server"


root_dir = File.dirname(File.expand_path(__FILE__))

opts = {
  :log_output => true,
  :dir_mode => :normal,
  :dir => "log",
  :monitor => true,
}
Daemons.run_proc("tss_server", opts) do
  FileUtils.cd(root_dir)
  TSSEMWebSocketServer.schedule()
  TSSWebServer.run!()
end
Something went wrong with that request. Please try again.