Compare commits

..

No commits in common. "f3af64923cd4b9cda41721304b3b7224bca24810" and "c311cc2fd7114214cde38d67f1f0f3aab22ca773" have entirely different histories.

5 changed files with 9 additions and 7 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,6 +54,7 @@ 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
@ -62,11 +63,8 @@ COPY --from=builder /build/client/dist ./public
COPY /server/.env.production ./server/src
# Zkopírování konfigurace easter eggů
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
# TODO tohle spadne když nebude existovat!
COPY /server/.easter-eggs.json ./server/
EXPOSE 3000

1
client/.gitignore vendored
View File

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

2
server/.gitignore vendored
View File

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

View File

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