#!/usr/bin/env puma

directory '/www/weiling-company/current'
rackup "/www/weiling-company/current/config.ru"
environment 'production'

tag 'weiling-company'

pidfile "/www/weiling-company/shared/tmp/pids/puma.pid"
state_path "/www/weiling-company/shared/tmp/pids/puma.state"
stdout_redirect '/www/weiling-company/shared/log/puma_access.log', '/www/weiling-company/shared/log/puma_error.log', true


threads 0,4



bind 'unix:///www/weiling-company/shared/tmp/sockets/puma.sock'

workers 1




restart_command 'bundle exec puma'


prune_bundler


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


