Compare commits

...

2 Commits

Author SHA1 Message Date
Michal Hájek
f3af64923c Přesun json databaze (souboru db.json) do složky data, související úpravy v Dockerfile 2025-02-02 16:09:07 +01:00
Michal Hájek
44b09a9d1a Začištění souborů .gitignore 2025-02-02 16:06:52 +01:00
5 changed files with 7 additions and 9 deletions

2
.gitignore vendored
View File

@ -1,7 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
node_modules
/node_modules
/.pnp
.pnp.js

View File

@ -54,7 +54,6 @@ WORKDIR /app
# Vykopírování sestaveného serveru
COPY --from=builder /build/server/node_modules ./server/node_modules
COPY --from=builder /build/server/dist ./
COPY server/resources ./server/resources
# Vykopírování sestaveného klienta
COPY --from=builder /build/client/dist ./public
@ -63,8 +62,11 @@ COPY --from=builder /build/client/dist ./public
COPY /server/.env.production ./server/src
# Zkopírování konfigurace easter eggů
# TODO tohle spadne když nebude existovat!
COPY /server/.easter-eggs.json ./server/
RUN if [ -f /server/.easter-eggs.json ]; then cp /server/.easter-eggs.json ./server/; fi
# Export /data/db.json do složky /data
VOLUME ["/data"]
COPY /data/db.json /data/db.json
EXPOSE 3000

1
client/.gitignore vendored
View File

@ -1,3 +1,2 @@
build
dist
src/types

2
server/.gitignore vendored
View File

@ -1,7 +1,5 @@
/node_modules
/dist
data.json
.env.production
.env.development
.easter-eggs.json
/resources/easterEggs

View File

@ -1,8 +1,7 @@
import JSONdb from 'simple-json-db';
import { StorageInterface } from "./StorageInterface";
const db = new JSONdb('./data.json');
const db = new JSONdb('../data/db.json');
/**
* Implementace úložiště používající JSON soubor.
*/