cri.dev
about posts rss

how i deploy my site

Published on

Related: Read how I build my site.

The static assets are hosted on AWS S3 on a bucket enabled for static website hosting.

I use Cloudflare as the CDN, Cache and it issues also the free HTTPS certificate for the site.

With the aws-cli I deploy the static assets with one command:

npm run deploy

This command takes the files in the _site directory, where Jekyll spits out the compiled assets, and I sync them to the remote S3 bucket.

npm run deploy is the script defined in package.json as:

aws s3 sync --acl public-read  --region eu-central-1 ./_site/ s3://christianfei.com

Here, have a slice of pizza 🍕