Deprecated sqlitedb in favor of in-memory db
This commit is contained in:
@@ -3,7 +3,6 @@ import { join } from 'path';
|
||||
import { Server } from 'socket.io';
|
||||
import { ytdlpUpdater } from './utils/updater';
|
||||
import { download, abortDownload, retrieveDownload, abortAllDownloads } from './core/downloader';
|
||||
import { init } from './db/db';
|
||||
import { getFreeDiskSpace } from './utils/procUtils';
|
||||
import Logger from './utils/BetterLogger';
|
||||
import Jean from './core/HTTPServer';
|
||||
@@ -48,15 +47,11 @@ io.on('disconnect', (socket) => {
|
||||
logger('ws', `${socket.handshake.address} disconnected`)
|
||||
})
|
||||
|
||||
server.listen(process.env.PORT || 3022)
|
||||
|
||||
splash()
|
||||
log.info('http', `Server started on port ${process.env.PORT || 3022}`)
|
||||
|
||||
init()
|
||||
.then(() => server.listen(process.env.PORT || 3022))
|
||||
.catch(err => log.err('db', err))
|
||||
|
||||
|
||||
/**
|
||||
* Cleanup handler
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user