#!/usr/bin/env puma

directory '/home/wiki/wiki/current'
rackup "/home/wiki/wiki/current/config.ru"
environment 'production'

tag ''

pidfile "/home/wiki/wiki/current/tmp/pids/puma.pid"
state_path "/home/wiki/wiki/current/tmp/pids/puma.state"
stdout_redirect '/home/wiki/wiki/current/log/puma_access.log', '/home/wiki/wiki/current/log/puma_error.log', true

threads 30,300
bind 'unix:///home/wiki/wiki/current/tmp/sockets/puma.sock'

workers 0
restart_command 'bundle exec puma'
prune_bundler

on_restart do
  puts 'Refreshing Gemfile'
  ENV["BUNDLE_GEMFILE"] = ""
end