Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Since we are running this in k8s now, let's remove this redirect of s…
Browse files Browse the repository at this point in the history
…tdout so the logs make it to journal.
  • Loading branch information
Thomas Farvour committed Dec 13, 2019
1 parent ec095cf commit da75a81
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions config/puma.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
threads 0, 16
workers ENV['WORKER_PROCESSES'].to_i
bind 'tcp://0.0.0.0:3000'

if ENV['RAILS_ENV'] == 'production' || ENV['RAILS_ENV'] == 'staging'
log_root = ENV['SERVER_LOG_ROOT'] || '/var/log/aleph'
stdout_dir = File.join(log_root, 'puma.stdout.log')
stderr_dir = File.join(log_root, 'puma.stderr.log')
stdout_redirect stdout_dir, stderr_dir, true
end

0 comments on commit da75a81

Please sign in to comment.