anthonyandClaude Sonnet 5 1ebff25603 Fix Task 1 schema.prisma for exact DDL fidelity and drop --force
Review of Task 1 (d86245a) found two issues:

1. prisma/schema.prisma didn't reproduce db/schema.sql's DDL exactly.
   Add @db.DateTime(0) to createdAt/updatedAt/expiresAt/cleanedAt (Prisma
   otherwise defaults to DATETIME(3)), and explicit map: names on the
   uuid unique constraint and status/expiresAt indexes so they match the
   real table's uniq_uuid/idx_status/idx_expires_at. Verified via
   `prisma migrate diff --from-empty --to-schema-datamodel`, which now
   shows DATETIME(0)/CURRENT_TIMESTAMP(0) and the correct names. Table
   collation and updated_at's ON UPDATE CURRENT_TIMESTAMP remain
   documented, accepted gaps with no schema-level fix in Prisma's mysql
   provider.

2. The original @prisma/client@6/prisma@6 pin used --force without
   diagnosing why. Reinstalled with `npm install @prisma/client@6
   prisma@6 --save-dev` (no --force) directly against this project's
   node_modules: it completed cleanly with no conflicts, confirming
   --force was unnecessary.

`prisma validate`, `prisma generate`, and the full test suite
(69 passed, 4 pre-existing failures unrelated to this change) all pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 01:07:34 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 15:24:02 +02:00
2026-07-30 16:04:34 +02:00

File Converter

Local development

  1. Copy .env.example to .env and fill in your local MariaDB credentials.
  2. Apply the schema: mysql -h <host> -u <user> -p <database> < db/schema.sql
  3. Install dependencies: npm install
  4. Run the API: npm start
  5. Run the worker (separate terminal): npm run worker
  6. Run tests: npm test (requires the same MariaDB reachable via your .env vars, exported into the shell)

Deployment on o2switch

  1. Upload the project (excluding node_modules/) via SSH/Git.
  2. Create/adjust .env on the server with production values (STORAGE_DIR pointing to a writable path under your account, MariaDB credentials from cPanel).
  3. Apply db/schema.sql to the MariaDB database created in cPanel.
  4. npm install (never with --ignore-scripts — Puppeteer needs its postinstall step to download Chromium).
  5. Configure the app in cPanel "Setup Node.js App", pointing its entry point at src/server.js. Passenger manages this process (start/stop/restart).
  6. Start the worker independently of Passenger, over SSH: ./node_modules/.bin/pm2 start ecosystem.config.cjs, then pm2 save. Try pm2 startup to survive a server reboot; if that's not permitted without root on this account, fall back to a cPanel cron job every 5 minutes that runs pm2 resurrect (or checks pm2 list and restarts the app if absent) — validate which option this hosting plan actually allows once connected over SSH.
  7. Add a cPanel cron job to run the cleanup script periodically, e.g. every 15 minutes: */15 * * * * cd /home/gaan6043/convert.ombrora.com-node && /home/gaan6043/nodevenv/convert.ombrora.com-node/24/bin/node src/cleanup.js > /dev/null (adjust the path and node binary location to match your actual account — check with which node over SSH).
  8. On every subsequent deployment: pull changes, npm install, npm run build (frontend), then restart the Passenger app from cPanel and pm2 restart convert-worker.
S
Description
No description provided
Readme
817 KiB
Languages
JavaScript 92.9%
CSS 5.8%
HTML 0.9%
Shell 0.4%