README.md > Add Calibre Deploy Method

This commit is contained in:
2026-07-31 13:54:56 +02:00
parent dd8557e418
commit d811eb0abc
3 changed files with 21 additions and 0 deletions
+1
View File
@@ -10,3 +10,4 @@ WORKER_POLL_INTERVAL_MS=1500
WORKER_CONCURRENCY=3 WORKER_CONCURRENCY=3
RATE_LIMIT_MAX_JOBS=20 RATE_LIMIT_MAX_JOBS=20
RATE_LIMIT_WINDOW_MINUTES=10 RATE_LIMIT_WINDOW_MINUTES=10
CALIBRE_PATH=./calibre/ebook-convert
+1
View File
@@ -10,3 +10,4 @@ WORKER_POLL_INTERVAL_MS=1500
WORKER_CONCURRENCY=3 WORKER_CONCURRENCY=3
RATE_LIMIT_MAX_JOBS=20 RATE_LIMIT_MAX_JOBS=20
RATE_LIMIT_WINDOW_MINUTES=10 RATE_LIMIT_WINDOW_MINUTES=10
CALIBRE_PATH=/home/gaan6043/convert.ombrora.com-binaries/calibre/ebook-convert
+19
View File
@@ -23,3 +23,22 @@
`DATABASE_URL=$(node scripts/printDatabaseUrl.js) npx prisma migrate resolve --applied 0_init` `DATABASE_URL=$(node scripts/printDatabaseUrl.js) npx prisma migrate resolve --applied 0_init`
Do **not** repeat this step on later deployments — after this one-time run, `migrate deploy` (step 8) is the correct command going forward. Do **not** repeat this step on later deployments — after this one-time run, `migrate deploy` (step 8) is the correct command going forward.
8. On every subsequent deployment: pull changes, `npm run deploy` 8. On every subsequent deployment: pull changes, `npm run deploy`
### Calibre
```bash
mkdir /home/gaan6043/convert.ombrora.com-binaries
mkdir /home/gaan6043/convert.ombrora.com-binaries/calibre
cd /home/gaan6043/convert.ombrora.com-binaries
wget -nv https://download.calibre-ebook.com/5.44.0/calibre-5.44.0-x86_64.txz -O calibre.txz
python3 -c "
import lzma, shutil
with lzma.open('calibre.txz') as f_in, open('calibre.tar', 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)
"
tar -xf calibre.tar -C calibre
rm calibre.txz calibre.tar
./calibre/ebook-convert --version
```