DEV Community

Discussion on: How is your portfolio built?

Collapse
 
iam_timsmith profile image
Tim Smith

I like it! Very minimalistic. How is that approach (S3 and CircleCi) working for you? I'm not real familiar CircleCI them but I keep hearing the term.

Collapse
 
benbarber profile image
Ben Barber

Thanks! I tried to keep it simple as I didnt want to pull in any UI library as a dependency. StyledComponents lets you write CSS in JS so there are no seperate CSS or SCSS files in the project at all.

CircleCI is a service that watches a branch in my sites Git repo for changes. When there is a change it automatically checks out the code, runs a gatsby build then uploads the built output to the S3 bucket. It works really well as I only have to push a commit to master, then within a few moments its live.

S3 is super cheap as well so it costs pretty much nothing to host the site.

Thread Thread
 
iam_timsmith profile image
Tim Smith

So CircleCI is basically doing the same thing as Netlify? That's how my netlify setup works. Once I push or merge to master, netlify runs a gatsby build command and rebuilds the site before serving it.