#!/usr/bin/env puma

directory '/www/novotech-company2/current'
rackup "/www/novotech-company2/current/config.ru"
environment 'production'

tag 'novotech-company2'

pidfile "/www/novotech-company2/shared/tmp/pids/puma.pid"
state_path "/www/novotech-company2/shared/tmp/pids/puma.state"
stdout_redirect '/www/novotech-company2/shared/log/puma_access.log', '/www/novotech-company2/shared/log/puma_error.log', false


threads 0,4

bind 'unix:///www/novotech-company2/shared/tmp/sockets/puma.sock'

workers 0

restart_command 'bundle exec puma'


prune_bundler

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


