Strfry: Difference between revisions
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
curl https://assets.wellorder.net/nostr/nostr-wellorder-early-500k-v1.jsonl.bz2 -o /home/admin/projects/nostr/data/nostr-wellorder-early-500k-v1.jsonl.bz2 | curl https://assets.wellorder.net/nostr/nostr-wellorder-early-500k-v1.jsonl.bz2 -o /home/admin/projects/nostr/data/nostr-wellorder-early-500k-v1.jsonl.bz2 | ||
</pre> | </pre> | ||
Make a | Make a backup copy of Strfry | ||
<pre> | <pre> | ||
cd /home/admin/projects/nostr/ | cd /home/admin/projects/nostr/ | ||
cp -r strfry bak.2023-10-07.01.strfry | cp -r strfry bak.2023-10-07.01.strfry | ||
</pre> | </pre> | ||
Load the data into the | Load the data into the live instance of Strfry | ||
<pre> | <pre> | ||
cd strfry | cd strfry | ||
bzip2 -dc ../data/nostr-wellorder-early-500k-v1.jsonl.bz2 | ./strfry import | bzip2 -dc ../data/nostr-wellorder-early-500k-v1.jsonl.bz2 | ./strfry import | ||
</pre> | </pre> |
Revision as of 03:27, 8 October 2023
Install
Base Server
ssh admin@52.11.172.130 sudo apt update && sudo apt dist-upgrade -y sudo apt install -y emacs-nox
Install
sudo apt install -y git build-essential libsecp256k1-dev libzstd-dev sudo apt install -y libyaml-perl libtemplate-perl libregexp-grammars-perl sudo apt install -y libssl-dev zlib1g-dev liblmdb-dev libflatbuffers-dev mkdir -p projects/nostr cd projects/nostr git clone https://github.com/hoytech/strfry.git cd strfry git submodule update --init make setup-golpe make -j4
Testing
Fetch the test data:
mkdir /home/admin/projects/nostr/data/ curl https://assets.wellorder.net/nostr/nostr-wellorder-early-500k-v1.jsonl.bz2 -o /home/admin/projects/nostr/data/nostr-wellorder-early-500k-v1.jsonl.bz2
Make a backup copy of Strfry
cd /home/admin/projects/nostr/ cp -r strfry bak.2023-10-07.01.strfry
Load the data into the live instance of Strfry
cd strfry bzip2 -dc ../data/nostr-wellorder-early-500k-v1.jsonl.bz2 | ./strfry import