Deployment logging with nixpacks

Since moving from Heroku buildpacks to Nixpacks, I have noticed the web process of the project is no longer logging out beyond the initial bootup process. I'm using a Rails project:
=> Booting Puma
=> Rails 6.1.5 application starting in production
=> Run `bin/rails server --help` for more startup options
[1] Puma starting in cluster mode...
[1] * Puma version: 5.6.4 (ruby 3.0.0-p0) ("Birdie's Version")
[1] * Min threads: 5
[1] * Max threads: 5
[1] * Environment: production
[1] * Master PID: 1
[1] * Workers: 2
[1] * Restarts: (✔) hot (✖) phased
[1] * Preloading application
[1] * Listening on http://0.0.0.0:3001
[1] Use Ctrl-C to stop
[1] - Worker 0 (PID: 116) booted in 0.01s, phase: 0
[1] - Worker 1 (PID: 123) booted in 0.0s, phase: 0
=> Booting Puma
=> Rails 6.1.5 application starting in production
=> Run `bin/rails server --help` for more startup options
[1] Puma starting in cluster mode...
[1] * Puma version: 5.6.4 (ruby 3.0.0-p0) ("Birdie's Version")
[1] * Min threads: 5
[1] * Max threads: 5
[1] * Environment: production
[1] * Master PID: 1
[1] * Workers: 2
[1] * Restarts: (✔) hot (✖) phased
[1] * Preloading application
[1] * Listening on http://0.0.0.0:3001
[1] Use Ctrl-C to stop
[1] - Worker 0 (PID: 116) booted in 0.01s, phase: 0
[1] - Worker 1 (PID: 123) booted in 0.0s, phase: 0
Is there anything I need to do to get logging to work? I've tried changing the
production.rb
production.rb
to log at
:debug
:debug
level but no changes.
5 Replies
Faraz
Faraz2y ago
For people having the same problem with Ruby on Rails:
You should enable stdout logs by setting RAILS_LOG_TO_STDOUT env variable to "enabled" (check Rails 7 default production.rb configuration file)
For people having the same problem with Ruby on Rails:
You should enable stdout logs by setting RAILS_LOG_TO_STDOUT env variable to "enabled" (check Rails 7 default production.rb configuration file)
From a different thread. Do you mind trying this?
macwilko
macwilko2y ago
thanks FP, going to try that! that fixed it bro thanks
Faraz
Faraz2y ago
Awesome <a:party_railway:812486353853218816>
macwilko
macwilko2y ago
No, you're awesome
Want results from more Discord servers?
Add your server