Blog at janaka.dev
OTHER License
Personal blog by Janaka Abeywardhana. Thoughts and notes on web technology, software development, and technical product managenement.
The main version at https://janaka.dev is hosted traditionally. A mirror at https://ipfs.janaka.dev is hosted on IPFS. A key reason for creating this site and using a static site generator was to host on IPFS as a learning exercise (web3). I've not managed to get IPFS hosting working reliably. So for now web2 hosting until I figure it out.
Forked from Gatsby blog starter. Help and inspiration from overreacted.io by Dan Abramov. Syntax theme based on Sarah Drasner's Night Owl with small tweaks. Copied from overreacted.io.
No third-party contributions except for code and content fixes. PRs welcome.
Supported languages in code blocks
yarn dev
This is not the preferred option.
yarn build
gatsby build
cd blog-janaka-dev
ipfs add -r public
ipfs key gen --type=rsa -size=2048 blog-janaka-dev
$PEER_ID
ipfs name publish --key=blog-janaka-dev $CID
$CID is the content ID from the add stepPublished to $PEER_ID: /ipfs/$CID
refs: https://docs-beta.ipfs.io/how-to/host-single-page-site/#create-your-site
This is not the preferred option. Use this only if local testing of CI/CD is require for troubleshooting
Add the following to a .env
file
AWS_S3_BUCKET_NAME=<bucket name>
AWS_REGION=<aws region>
AWS_PROFILE=<aws credentials profile name>
yarn build
yarn deploy