Template of a custom feed generator service for the Bluesky network in Ruby
at master 505 B view raw
1require_relative 'app/config' 2require_relative 'app/server' 3 4# might not be needed depending on the app server you use - comment out these lines to leave logs on STDOUT 5Dir.mkdir('log') unless Dir.exist?('log') 6$sinatra_log = File.new("log/sinatra.log", "a+") 7 8# flush logs to the file immediately instead of buffering 9$sinatra_log.sync = true 10 11# Sinatra turns off its own logging to stdout if another logger is in the stack 12use Rack::CommonLogger, $sinatra_log 13 14Server.configure 15 16run BlueFactory::Server