README.md > Add Calibre Deploy Method
This commit is contained in:
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user