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.3.2 | bin/watch_collector |
city-watch-0.3.1 | bin/watch_collector |
city-watch-0.3.0 | bin/watch_collector |