diff --git a/.env.example b/.env.example index b1ea6d8..f850d88 100644 --- a/.env.example +++ b/.env.example @@ -10,3 +10,4 @@ WORKER_POLL_INTERVAL_MS=1500 WORKER_CONCURRENCY=3 RATE_LIMIT_MAX_JOBS=20 RATE_LIMIT_WINDOW_MINUTES=10 +CALIBRE_PATH=./calibre/ebook-convert diff --git a/.env.local b/.env.local index b1ea6d8..a0e871f 100644 --- a/.env.local +++ b/.env.local @@ -10,3 +10,4 @@ WORKER_POLL_INTERVAL_MS=1500 WORKER_CONCURRENCY=3 RATE_LIMIT_MAX_JOBS=20 RATE_LIMIT_WINDOW_MINUTES=10 +CALIBRE_PATH=/home/gaan6043/convert.ombrora.com-binaries/calibre/ebook-convert diff --git a/README.md b/README.md index f3a497d..2e78fe0 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,22 @@ `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. 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 +``` \ No newline at end of file