Files
Farhan M 68081c1c89 feat(extract): add Markdown structural extraction + sync collect_files extensions
1. NEW: extract_markdown() — structurally indexes .md/.mdx files into the
   knowledge graph. Headings become nodes, code blocks become nodes with
   language tags, and nesting produces 'contains' edges. Zero new deps
   (pure regex/line-by-line parsing, no tree-sitter needed).

2. FIX: collect_files() _EXTENSIONS was hardcoded and missing 18 extensions
   that _DISPATCH already supported (.jsx, .mjs, .ex, .exs, .jl, .vue,
   .svelte, .dart, .v, .sv, .sql, .f, .F, .f90, etc). Now uses
   set(_DISPATCH.keys()) to stay automatically in sync.

3. Added deploy_guide.md test fixture and 6 new test cases.
4. Updated test_collect_files_from_dir to use dynamic extension set.
2026-05-04 19:08:50 +05:30

521 B

Deploy Guide

How to deploy the QuranicWords backend.

Prerequisites

  • Docker installed
  • SSH access to VPS

Full Deploy

Run this one-liner on your VPS:

cd /opt/QuranicWords && git pull origin main && docker compose build --no-cache api

Database Migration

If you changed the Prisma schema:

ALTER TABLE users ADD COLUMN points INT DEFAULT 0;

Rollback

Use git revert to undo bad deploys.

def rollback(version):
    subprocess.run(["git", "checkout", version])