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:
7
config/defaults.yaml
Normal file
7
config/defaults.yaml
Normal 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
6
config/puma.rb
Normal 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
|
Reference in New Issue
Block a user