mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-03 00:03:14 -04:00
- move the initialization of config/library/storage to mango.cr
- remove duplicate initialization of server in server.cr
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
require "./server"
|
||||
require "./config"
|
||||
require "./library"
|
||||
require "./storage"
|
||||
|
||||
server = Server.new
|
||||
config = Config.load
|
||||
library = Library.new config.library_path
|
||||
storage = Storage.new config.db_path
|
||||
|
||||
server = Server.new config, library, storage
|
||||
server.start
|
||||
|
||||
Reference in New Issue
Block a user