[ad_1]
I try to set up and get Ruby working with docker. How can I setup logging for ruby server (fatal error, warning etc.). I ran into problem where the server would crash every time I got a fatal error and I had to restart docker again. Thanks in advance. Here is the example:
Dockerfile:
CMD ["ruby", "server.rb", "-e", "production"]
server.rb
require 'sinatra'
set :server, :puma
set :bind, '0.0.0.0'
require_relative 'routes/barcode'
[ad_2]