Migrated app to modular Sinatra application; copied in a lot of improvements for a Sinatra app that I learned from Stage Manager

This commit is contained in:
2023-03-14 20:49:42 -04:00
parent 2340dddd06
commit 385dd98dbe
28 changed files with 384 additions and 275 deletions

7
config/defaults.yaml Normal file
View File

@ -0,0 +1,7 @@
server:
address: '127.0.0.1'
port: 6200
database:
adapter: 'sqlite'
database: 'data/raven.db'

6
config/puma.rb Normal file
View File

@ -0,0 +1,6 @@
# Load application config
require './app/config.rb'
$conf = Config.new(File.join(__dir__, 'config/raven.yaml'))
bind_address = "tcp://#{$conf.get('server.address')}:#{$conf.get('server.port')}"
bind bind_address