Sha256: ffc319faff4e040e053122945e9fb4db5c0cefd5be49637ad24ba819768d1096

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

require 'termvana/version'
require 'termvana/application'

require 'thin'


module Termvana
  def self.start(port = 5432, open = false)
    filename = File.expand_path(File.dirname(__FILE__) + '/termvana/config.ru')
    puts "Opening up tervana..."
    Thread.new{ sleep 1; `open http://localhost:5432/`} if open
    
    Thin::Runner.new("--max-persistent-conns 1024 --timeout 0 -R #{filename} -p #{port} start -e #{Termvana::Application.env}".split).run!
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
termvana-0.2.0.beta3 lib/termvana.rb
termvana-0.2.0.beta2 lib/termvana.rb
termvana-0.2.0.beta1 lib/termvana.rb