Sha256: c67440ed60f0612d6c02c5e02dbbe5fb9e922ea8dcfc15759dc385b678a508f7
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
class App def self.running @running ? true : false end def self.port ENV['PORT'] || 5000 end def self.cometio_url "http://localhost:#{port}/cometio/io" 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} && bundle exec rackup config.ru -p #{port}" system cmd end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
em-cometio-client-0.1.1 | test/app.rb |