```ruby
directory '/app'

daemonize

pidfile '/run/puma.pid'

threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }.to_i
threads threads_count, threads_count
```

Write puma stdout and stderr to log files
user
```ruby
directory '/app'

daemonize

pidfile '/run/puma.pid'

threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }.to_i
threads threads_count, threads_count

stdout_redirect '/app/log/puma.out.log', '/app/log/puma.err.log', true

quiet
```
assistant