#!/usr/bin/env ruby lib = File.expand_path('../../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "pergo" config = YAML.load_file("config.yml") Pergo.config.access_key = config["access_key"] Pergo.config.secret_key = config["secret_key"] Pergo.config.queue_region = config["queue_region"] Pergo.config.topic = config["topic"] Pergo::Server.run(host: ARGV[0], port: ARGV[1])