The code and content for my personal site, which is generated by Jekyll jekyll and hosted on Amazon S3.
- Install gems:
bundle install
- Ensure S3 credentials are present in
.env
(excluded from source control); more information)
# AWS credentials
CF_DISTRIBUTION_ID=<cloudfront-distribution>
S3_BUCKET=<domain>
S3_ID=<aws-access-key>
S3_REGION=<aws-region>
S3_SECRET=<aws-secret>
- Start local server for previewing:
script/server
(site will be available atlocalhost:4000
) - Add drafts to
_drafts
- Write, edit and repeat until "done"
- Move completed posts from
_drafts
to_posts
, using theYYYY-MM-DD-post-title
naming convention
Run script/publish
to generate the site and publish it to S3. Ensure that the
local server is not running to prevent publishing drafts, future posts or non-
indexed related posts.