Answer the question
In order to leave comments, you need to log in
How to autorotate logs in unicorn?
For the production server, there are unicorn
config/unicorn.rb settings
app_name = "app_name"
root = "/home/my_app"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.err.log"
stdout_path "#{root}/log/unicorn.out.log"
listen "/tmp/unicorn.#{app_name}.sock"
worker_processes 2
timeout 30
before_exec do |_|
ENV["BUNDLE_GEMFILE"] = File.join(root, 'Gemfile')
end
Answer the question
In order to leave comments, you need to log in
logrotate?
like this - https://gist.github.com/petey5king/1480137
Is it at the application level? How to include unicorn.conf in a rails application?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question