move db to directory for better support for docker volumes

This commit is contained in:
virus 2021-01-28 10:17:16 +01:00
parent 2cf520fd4b
commit 81fe19e298
2 changed files with 2 additions and 1 deletions

1
data/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
!.gitignore

View file

@ -3,7 +3,7 @@ const { DOMAIN, PRIVKEY_PATH, CERT_PATH, PORT_HTTP, PORT_HTTPS } = config;
const express = require('express');
const app = express();
const Database = require('better-sqlite3');
const db = new Database('bot-node.db');
const db = new Database('data/bot-node.db');
const fs = require('fs');
const routes = require('./routes'),
bodyParser = require('body-parser'),