From 3d59cba509017ae6e4aaff424258dff02cfb293b Mon Sep 17 00:00:00 2001 From: TheNeedful-DO Date: Mon, 4 Dec 2023 16:21:56 +0000 Subject: [PATCH] Add production puma config to repo --- config/puma/production.rb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 config/puma/production.rb 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 + +