class Dolphin::Puma

Puma related commands

Public Instance Methods

restart() click to toggle source
# File lib/dolphin/puma.rb, line 29
def restart
  menu = [
    "
      cd #{@deploy_dir}
      RAILS_ENV=#{@env} bundle exec pumactl -S #{@pids}/#{@application}.state restart
      # kill -s SIGUSR2 `cat #{@pids}/#{@application}.pid`
    ",
  ]

  execute menu
end
start() click to toggle source
# File lib/dolphin/puma.rb, line 5
def start
  menu = [
    "
      cd #{@deploy_dir}
      RAILS_ENV=#{@env} bundle exec puma -C #{@deploy_dir}/config/puma.rb
    ",
  ]

  execute menu
end
stop() click to toggle source
# File lib/dolphin/puma.rb, line 17
def stop
  menu = [
    "
      cd #{@deploy_dir}
      RAILS_ENV=#{@env} bundle exec pumactl -S #{@pids}/#{@application}.state stop
    ",
  ]

  execute menu
end