11# require 'sinatra/reloader'
22require 'rack/ssl'
3- require 'sass'
4- require 'sass/plugin/rack'
53require 'sinatra/base'
64require 'slim'
75
@@ -14,20 +12,10 @@ class ServerBase < Sinatra::Application
1412 helpers ServerHelper
1513
1614 Slim ::Engine . set_options pretty : true
17- use Sass ::Plugin ::Rack
1815 use Rack ::SSL if ENV [ 'MADNESS_FORCE_SSL' ]
1916 set :root , File . expand_path ( '../../' , __dir__ )
20- set :server , :puma
2117 set :environment , ENV [ 'MADNESS_ENV' ] || :production
22-
23- # TODO: Uncomment when the upstream issue is resolved
24- # At this time, we cannot use reloader, since it prints deprecation
25- # warnings in Ruby 2.7
26- # ref: https://github.com/sinatra/sinatra/issues/1590
27- # configure :development do
28- # register Sinatra::Reloader
29- # also_reload "#{__dir__}/*.rb"
30- # end
18+ set :server , :puma
3119
3220 # Since we cannot use any config values in the main body of the class,
3321 # since they will be updated later, we need to set anything that relys
@@ -48,8 +36,6 @@ def self.set_tempalate_locations
4836
4937 set :views , theme . views_path
5038 set :public_folder , theme . public_path
51- Sass ::Plugin . options [ :template_location ] = theme . css_source_path
52- Sass ::Plugin . options [ :css_location ] = theme . css_target_path
5339 end
5440
5541 def self . set_basic_auth
0 commit comments