Sha256: 9d4b862f5beea903adb305791bafe4704d359fa5b11fc4f15a4de49702b886db
Contents?: true
Size: 363 Bytes
Versions: 2
Compression:
Stored size: 363 Bytes
Contents
module ServerGemListen module Puma class << self def start Thread.new do system 'rails s' end end def restart puts '=> Restart Puma' stop start end private def stop system "kill $(lsof -i tcp:3000 | grep ruby | awk '{ print $2 }')" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
server-gem-listen-0.1.1 | lib/server_gem_listen/puma.rb |
server-gem-listen-0.1.0 | lib/server_gem_listen/puma.rb |