You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
712 B
Bash
18 lines
712 B
Bash
# This script updates the index. Testing and uploading to server/IPFS is done manually.
|
|
|
|
echo "Scraping trackers for seed/leech data"
|
|
mosh nextgen@server "~/tracker-scraper" # you can use ssh instead of mosh aswell
|
|
|
|
ssh nextgen@server "psql -c 'REFRESH MATERIALIZED VIEW fresh'"
|
|
|
|
echo "Generating index dump"
|
|
rm index-generator/dump.csv
|
|
ssh nextgen@server "psql -c '\copy (select * from fresh) to stdout with format csv'" > index-generator/dump.csv
|
|
|
|
(cd index-generator; node --max-old-space-size=10000 main.js)
|
|
python3 index-generator/fix-metajson.py website/generated/inx
|
|
|
|
echo "Uploading website"
|
|
cd website
|
|
scp -r . root@server:/www/torrent-paradise.ml #todo use rsync https://superuser.com/a/1405020/373473
|