Template of a custom feed generator service for the Bluesky network in Ruby

added some more comments

Changed files
+14 -2
app
+13
app/config.rb
··· 8 8 9 9 BlueFactory.add_feed 'linux', LinuxFeed.new 10 10 BlueFactory.add_feed 'starwars', StarWarsFeed.new 11 + 12 + # do any additional config & customization on BlueFactory::Server here: 13 + # 14 + # BlueFactory::Server.disable :logging 15 + # BlueFactory::Server.set :port, 4000 16 + # 17 + # BlueFactory::Server.get '/' do 18 + # redirect 'https://web.example.com' 19 + # end 20 + # 21 + # BlueFactory::Server.before do 22 + # headers "X-Powered-By" => "BlueFactory/#{BlueFactory::VERSION}" 23 + # end
+1 -2
config.ru
··· 1 1 require_relative 'app/config' 2 2 3 + # might not be needed depending on the app server you use - comment out these lines to leave logs on STDOUT 3 4 Dir.mkdir('log') unless Dir.exist?('log') 4 - 5 5 log = File.new("log/sinatra.log", "a+") 6 6 log.sync = true 7 - 8 7 use Rack::CommonLogger, log 9 8 10 9 run BlueFactory::Server