Sha256: 9bf9ce43db97ebc57a97b7a7de5863c91fbf15569f51bba8793d880c649ce64c

Contents?: true

Size: 511 Bytes

Versions: 43

Compression:

Stored size: 511 Bytes

Contents

#!/usr/bin/env ruby

require 'yajl'
require 'city_watch'

puts "Starting watch collector..."

require 'unicorn/launcher'

ENV["RACK_ENV"] ||= CityWatch.config[:environment]
rackup_opts = Unicorn::Configurator::RACKUP
options = rackup_opts[:options]

CityWatch.unicorn_opts(rackup_opts)

app = Unicorn.builder("#{File.expand_path(File.dirname(__FILE__))}/../#{File.basename($0)}.ru", nil)
op = nil

Unicorn::Launcher.daemonize!(options) if rackup_opts[:daemonize]
Unicorn::HttpServer.new(app, options).start.join

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
city-watch-0.7.9 bin/watch_collector
city-watch-0.7.8 bin/watch_collector
city-watch-0.7.7 bin/watch_collector
city-watch-0.7.6 bin/watch_collector
city-watch-0.7.5 bin/watch_collector
city-watch-0.7.4 bin/watch_collector
city-watch-0.7.3 bin/watch_collector
city-watch-0.7.2 bin/watch_collector
city-watch-0.7.1 bin/watch_collector
city-watch-0.7.0 bin/watch_collector
city-watch-0.6.9 bin/watch_collector
city-watch-0.6.8 bin/watch_collector
city-watch-0.6.7 bin/watch_collector
city-watch-0.6.6 bin/watch_collector
city-watch-0.6.5 bin/watch_collector
city-watch-0.6.4 bin/watch_collector
city-watch-0.6.3 bin/watch_collector
city-watch-0.6.2 bin/watch_collector
city-watch-0.6.1 bin/watch_collector
city-watch-0.6.0 bin/watch_collector