Sha256: db4e71157221850f98cbf1b18c75a8735f0c5122b024ad92efc1439d7cfd9a63

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

#!/usr/bin/env ruby
require 'daemons'
require 'juggernaut'

require File.join(File.dirname(__FILE__), "..", "lib", "css_push_server")

# TODO: HACK
pids = File.join('tmp', 'pids')
pid = File.join(pids, 'juggernaut.pid')
if ARGV.include?('start')
  system("juggernaut -cconfig/juggernaut.yml -d -P #{pid}")
else
  system("kill #{File.read(pid)}")
  system("rm #{pid}")
end

Daemons.run_proc(File.join(pids, 'css_push_server.rb')) { CSSPushServer.run }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tilleryj-CSS-Push-1.0.1 bin/csspush
tilleryj-CSS-Push-1.0.2 bin/csspush
tilleryj-CSS-Push-1.0.3 bin/csspush