Sha256: 8002d024ab74d5d20f4c0f9f3fdc80482f3cab452af9c2d0385cba9734fdd67e
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
class App def self.running @running ? true : false end def self.port ENV['PORT'] || 5000 end def self.url "http://localhost:#{port}" 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 |
---|---|
sinatra-cometio-0.6.0 | test/app.rb |