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

@@ -3,7 +3,7 @@ const fs = require('fs');
let CONFIG_ITEMS = require('./consts.js')['CONFIG_ITEMS'];
const debugMode = process.env.YTDL_MODE === 'debug';
let configPath = debugMode ? '../src/assets/default.json' : 'config/default.json';
let configPath = debugMode ? '../src/assets/default.json' : 'appdata/default.json';
// https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key
Object.byString = function(o, s) {