Skip to content

Instantly share code, notes, and snippets.

@loadletter
Created August 28, 2016 00:17
Show Gist options
  • Save loadletter/7ca45d2b4d42b21b628d4e494c6c1f3d to your computer and use it in GitHub Desktop.
Save loadletter/7ca45d2b4d42b21b628d4e494c6c1f3d to your computer and use it in GitHub Desktop.
Update and rebuild IPFS from source
#!/bin/sh
set -e
echo "IPFS local gateway must be running!!!"
go get -u -v github.com/whyrusleeping/gx && go get -u -v github.com/whyrusleeping/gx-go
go get -v -u -d github.com/ipfs/go-ipfs && cd $GOPATH/src/github.com/ipfs/go-ipfs
ln -sf $GOPATH/bin/gx $(grep gx_bin= Makefile | cut -d'=' -f2)
ln -sf $GOPATH/bin/gx-go $(grep gx-go_bin= Makefile | cut -d'=' -f2)
export IPFS_API=localhost:8080
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment