fix pipeline: Docker npm run init-db
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good

This commit is contained in:
2025-07-30 09:04:11 +02:00
parent 0f2cf87a78
commit 77c57cb58b
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ RUN npm i --unsafe-perm
COPY . ./
COPY config_dev.json ./config.json
RUN npm run build
RUN npm run init_db
RUN npm run init-db
# --- Production stage ---
FROM node:24-alpine

View File

@@ -39,9 +39,9 @@ You can preview the production build with `npm run preview`.
## Initializing the SQLite DB
A database initialization script `init_db.js` in included in the `src/init` folder. It will create a users database (if not existing) and populate it with a default admin user. Additionally, an empty cases table will be created.
A database initialization script `init_db.ts` in included in the `src/init` folder. It will create a users database (if not existing) and populate it with a default admin user. Additionally, an empty cases table will be created.
It can be run with `node init_db.js`
It can be run with `node init_db.ts`
Database schema: