Playground exploring various ways of automating deployment of a static website to IPFS.
file | description |
---|---|
deploy.sh |
Simple bash script using locally installed ipfs daemon |
deploy.js |
Deploy from Node.js via js-ipfs-api & js-ipfs |
Every way needs to go from build output to live:
- add
dist/
folder and contents to IPFS - output the final IPFS url
- write IPFS hash into
versions/current
and add toversions/history
- DNS either via IPNS or DNS provider API calls
- consider to be run in a CI context
CNAME: `subdomain.domain.com` -> `gateway.ipfs.io`
TXT: `_dnslink.subdomain.domain.com` -> `dnslink=/ipns/<peer_id>`
- Matthias Kretschmann (@kremalicious) - BigchainDB
- Code from the Internet™