Changed location of db and config to one unified directory, 'appdata'

Archive files now get generated if nonexistent during deletions

Simplified docker-compose.yml to not require environment variables. Added volume for appdata folder which will be automatically shipped with docker builds
This commit is contained in:
Isaac Grynsztein
2020-03-16 01:22:09 -04:00
parent 2cd35cccd1
commit ff2f5c89da
7 changed files with 24 additions and 38 deletions

View File

@@ -8,7 +8,7 @@ var path = require('path');
var youtubedl = require('youtube-dl');
const config_api = require('./config');
const adapter = new FileSync('db.json');
const adapter = new FileSync('./appdata/db.json');
const db = low(adapter)
const debugMode = process.env.YTDL_MODE === 'debug';