diff --git a/config/puma/production.rb b/config/puma/production.rb new file mode 100644 index 00000000..482f7b97 --- /dev/null +++ b/config/puma/production.rb @@ -0,0 +1,32 @@ +#!/usr/bin/env puma + +environment 'production' +directory '/home/thirteen/srv/thirteen-tien-len_production/current' +rackup "/home/thirteen/srv/thirteen-tien-len_production/current/config.ru" + +tag '' + +pidfile "/home/thirteen/srv/thirteen-tien-len_production/shared/tmp/pids/puma.pid" +state_path "/home/thirteen/srv/thirteen-tien-len_production/shared/tmp/pids/puma.state" +stdout_redirect '/home/thirteen/srv/thirteen-tien-len_production/shared/log/puma_access.log', '/home/thirteen/srv/thirteen-tien-len_production/shared/log/puma_error.log', true + + +threads 0,5 + +bind 'unix:///home/thirteen/srv/thirteen-tien-len_production/shared/tmp/sockets/puma.sock' + +workers 0 + + + + + +prune_bundler + + +on_restart do + puts 'Refreshing Gemfile' + ENV["BUNDLE_GEMFILE"] = "" +end + +