Sha256: 61309a5b6bf912a72c0fd42c31309c2b26556609c372b8dd558146769652197f
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
class App def self.running @running ? true : false end def self.port ENV['PORT'] || 5000 end def self.ws_port ENV['WS_PORT'] || 9000 end def self.websocketio_url "ws://localhost:#{ws_port}" end def self.app_dir File.expand_path 'app', File.dirname(__FILE__) end def self.start return if running @running = true cmd = "cd #{app_dir} && WS_PORT=#{ws_port} rackup config.ru -p #{port}" system cmd end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
em-websocketio-client-0.0.4 | test/app.rb |
sinatra-websocketio-0.4.1 | test/app.rb |