Skip to content

Commit 8abf619

Browse files
committed
Log to journalctl instead of files
This will improve log management by getting free rotation and centralization via systemd's journal.
1 parent 4fc2d9d commit 8abf619

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/deploy/production.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
set :rvm_ruby_version, '3.4.5'
77
set :rvm_custom_path, '/home/rails/.rvm'
88

9+
set :puma_access_log, "journal"
10+
set :puma_error_log, "journal"
11+
912
namespace :deploy do
1013
after :normalize_assets, :gzip_assets do
1114
on release_roles(fetch(:assets_roles)) do

config/puma/production.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
pidfile "#{shared_path}/tmp/pids/puma.pid"
1010
state_path "#{shared_path}/tmp/pids/puma.state"
11-
stdout_redirect "#{shared_path}/log/puma_access.log", "#{shared_path}/log/puma_error.log", true
1211

1312
workers 2
1413
threads 3,3

0 commit comments

Comments
 (0)