Sha256: c7f9968a64bdc55a1c115c3d8d3f7859dbeae53a02d4b834e69c74690688b4d3
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
module ServerGemListen module Server class << self def start Thread.new do system './bin/rails s' end end def restart puts "#{ServerGemListen::NOTIFICATION_PREFIX} 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
server-gem-listen-0.2.1 | lib/server_gem_listen/server.rb |