Module: Puma
- Defined in:
- lib/magicmonkey/app_servers/puma.rb
Class Method Summary collapse
Class Method Details
.start(args = {}) ⇒ Object
3 4 5 |
# File 'lib/magicmonkey/app_servers/puma.rb', line 3 def self.start(args = {}) ["puma -e production -p #{args[:port]} --pidfile 'tmp/pids/puma.pid' #{args[:app_server_options]} -d"] end |
.stop(args = {}) ⇒ Object
7 8 9 |
# File 'lib/magicmonkey/app_servers/puma.rb', line 7 def self.stop(args = {}) ["kill `cat 'tmp/pids/puma.pid'`"] end |