Sha256: 855a4abc247933720d10b257f39e2d8209b199999c8c24d7e57a7c3dff9e3fd4

Contents?: true

Size: 590 Bytes

Versions: 5

Compression:

Stored size: 590 Bytes

Contents

#!/usr/bin/env ruby

require 'redis'

ENV['REDIS_HOST'] = 'localhost' unless ENV['REDIS_HOST']
ENV['REDIS_PORT'] = '6379' unless ENV['REDIS_PORT']
ENV['REDIS_PASS'] = nil unless ENV['REDIS_PASS']
ENV['REDIS_DB'] = '0' unless ENV['REDIS_DB']
$redis = Redis.new(:host => ENV['REDIS_HOST'],
                   :port => ENV['REDIS_PORT'],
                   :password => ENV['REDIS_PASS'],
                   :db => ENV['REDIS_DB'])

libpath = File.expand_path(File.join(File.dirname(__FILE__), "lib"))
$:.unshift(libpath)
require "#{libpath}/app.rb"

instance = GaptoolServer.new
run instance

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gaptool-server-0.5.19 config.ru
gaptool-server-0.5.18 config.ru
gaptool-server-0.5.17 config.ru
gaptool-server-0.5.16 config.ru
gaptool-server-0.5.15 config.ru