Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created June 8, 2019 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/efabefd488bf1f741f4e6833daafb1bb to your computer and use it in GitHub Desktop.
Save tmcw/efabefd488bf1f741f4e6833daafb1bb to your computer and use it in GitHub Desktop.
#!/bin/zsh
ipfs daemon &
PID1=$!
echo "Jekyll building…"
bundle exec jekyll build
cd _site
make-relative https://macwright.org/
hash=`ipfs add -r -q . | tail -1`
echo "Root hash: ${hash}"
# gandi-ipfs $hash
echo "Pinning…"
# ssh -t pi@raspberrypi.local "ipfs pin add $hash"
# echo "Pinned."
# kill $PID1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment