Something went wrong. Try again.
A tool for measuring the coverage of Bluesky/ATProto relays forked from mackuba.eu/pulsar
Something went wrong. Try again.
1234567891011121314151617require_relative 'server'
# logging normally goes to either stdout or stderr depending on how it's run, if logging is enabled in Sinatra# but Passenger routes it all to its main log file unless you use a config option that is premium only :\# so we set up logging to a local file explicitly
Dir.mkdir('log') unless Dir.exist?('log')$sinatra_log = File.new("log/sinatra.log", "a+")
# flush logs to the file immediately instead of buffering$sinatra_log.sync = true
# Sinatra turns off its own logging to stdout if another logger is in the stackuse Rack::CommonLogger, $sinatra_log
run Sinatra::Application