See the best posts from any Bluesky account
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Extract migration init service and fix browser test type errors

Split migrations into a dedicated `migrate` service that runs once
before web/workers start, replacing the inline shell command in web.
Workers now depend on migrate instead of web, so they can start as
soon as migrations complete.

Add /// <reference lib="dom" /> to dark_mode browser test to fix
TS2584 errors from document references inside page.evaluate().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+30 -5
+29 -5
docker-compose.yml
··· 18 18 retries: 15 19 19 start_period: 5s 20 20 21 + migrate: 22 + build: . 23 + command: sh -c "node ace.js migration:run --force && node ace.js clickhouse:migrate" 24 + depends_on: 25 + clickhouse: 26 + condition: service_healthy 27 + volumes: 28 + - sqlite-data:/data 29 + environment: 30 + NODE_ENV: production 31 + DB_CONNECTION: sqlite 32 + SQLITE_PATH: /data/favs.sqlite 33 + CLICKHOUSE_URL: http://clickhouse:8123 34 + CLICKHOUSE_DB: favs 35 + CLICKHOUSE_USER: favs 36 + CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD} 37 + APP_KEY: ${APP_KEY} 38 + APP_URL: http://localhost:3333 39 + LOG_LEVEL: info 40 + SESSION_DRIVER: cookie 41 + QUEUE_DRIVER: database 42 + 21 43 web: 22 44 restart: unless-stopped 23 45 build: . 24 - command: sh -c "node ace.js migration:run --force && node ace.js clickhouse:migrate && node bin/server.js" 46 + command: node bin/server.js 25 47 depends_on: 26 48 clickhouse: 27 49 condition: service_healthy 50 + migrate: 51 + condition: service_completed_successfully 28 52 volumes: 29 53 - sqlite-data:/data 30 54 environment: ··· 59 83 depends_on: 60 84 clickhouse: 61 85 condition: service_started 62 - web: 63 - condition: service_healthy 86 + migrate: 87 + condition: service_completed_successfully 64 88 volumes: 65 89 - sqlite-data:/data 66 90 healthcheck: ··· 91 115 depends_on: 92 116 clickhouse: 93 117 condition: service_started 94 - web: 95 - condition: service_healthy 118 + migrate: 119 + condition: service_completed_successfully 96 120 volumes: 97 121 - sqlite-data:/data 98 122 healthcheck:
+1
tests/browser/dark_mode.spec.ts
··· 1 + /// <reference lib="dom" /> 1 2 import { test } from '@japa/runner' 2 3 import { createClient } from '@clickhouse/client' 3 4 import { readdir, readFile } from 'node:fs/promises'