A tool for measuring the coverage of Bluesky/ATProto relays
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

server updates for production deploy

+20 -1
+2
.gitignore
··· 1 1 config/sources.yml 2 2 db/*.sqlite3* 3 + log 4 +
+16
config.ru
··· 1 + require_relative 'server' 2 + 3 + # logging normally goes to either stdout or stderr depending on how it's run, if logging is enabled in Sinatra 4 + # but Passenger routes it all to its main log file unless you use a config option that is premium only :\ 5 + # so we set up logging to a local file explicitly 6 + 7 + Dir.mkdir('log') unless Dir.exist?('log') 8 + $sinatra_log = File.new("log/sinatra.log", "a+") 9 + 10 + # flush logs to the file immediately instead of buffering 11 + $sinatra_log.sync = true 12 + 13 + # Sinatra turns off its own logging to stdout if another logger is in the stack 14 + use Rack::CommonLogger, $sinatra_log 15 + 16 + run Sinatra::Application
+2 -1
server.rb
··· 2 2 3 3 require 'bundler/setup' 4 4 require 'sinatra' 5 - require 'thin' 6 5 require 'yaml' 6 + 7 + require 'thin' if $PROGRAM_NAME == __FILE__ 7 8 8 9 require_relative 'init' 9 10 require_relative 'report'