docker setup / db changes
This commit is contained in:
parent
a3841cf6c3
commit
04012b7976
@ -2,5 +2,7 @@ services:
|
|||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
command: node build/index.mjs
|
command: node build/index.mjs
|
||||||
|
volumes:
|
||||||
|
- ./db/:/app/db/
|
||||||
environment:
|
environment:
|
||||||
- BOT_TOKEN=${BOT_TOKEN}
|
- BOT_TOKEN=${BOT_TOKEN}
|
@ -1,5 +1,9 @@
|
|||||||
|
import path from 'node:path'
|
||||||
import { QuickDB } from 'quick.db'
|
import { QuickDB } from 'quick.db'
|
||||||
export const db = new QuickDB()
|
import { dirname } from '@discordx/importer'
|
||||||
|
export const db = new QuickDB({
|
||||||
|
filePath: path.join(dirname(import.meta.url), '..', 'db', 'json.sqlite'),
|
||||||
|
})
|
||||||
|
|
||||||
export enum DBTableEnum {
|
export enum DBTableEnum {
|
||||||
WELCOME_CHANNEL = 'WELCOME_CHANNEL',
|
WELCOME_CHANNEL = 'WELCOME_CHANNEL',
|
||||||
|
Loading…
Reference in New Issue
Block a user