mirror of
https://github.com/dariusk/rss-to-activitypub.git
synced 2024-12-23 14:13:33 +02:00
move db to directory for better support for docker volumes
This commit is contained in:
parent
2cf520fd4b
commit
81fe19e298
2 changed files with 2 additions and 1 deletions
1
data/.gitignore
vendored
Normal file
1
data/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
!.gitignore
|
2
index.js
2
index.js
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue