3 ms·
Saving yourself time and money is often more energy efficient. Here is a small example: For my blog site, I use Netlify to host - which auto deploys on a git
by ricksharp 6y ago
Saving yourself time and money is often more energy efficient.
Here is a small example:
For my blog site, I use Netlify to host - which auto deploys on a git push. My builds running on Netlify were averaging around 3 mins (every time I pushed whether it updated content or not).
I noticed the problem when I almost ran out of build time. So I changed it to build locally and now commit the build output inside my git repo. Netlify deploys in around 5 secs now since it is all pre-built static files - I’ll never run out of build time now.
My machine already has all the dependencies and cached build output, so it can build in about 20 secs.
In addition, I can handle build errors immediately rather than finding a failed deployment.