For years I’ve been fascinated by automation. Why waste time doing menial tasks when you can program a machine to do them for you?
My love for automation began, not with code, but with factory machinery. I would spend hours watching, ‘How it’s made’ on the Discovery Channel. In awe of machines crafting everyday items that are often taken for granted. Things like, springs, toothbrushes or pasta. I loved how, by running a series of simple tasks, complex objects could be created with ease. Now I port the same principals into my development workflow.
When I’m ready to deploy, I start a release branch on git flow, run
grunt build (which minifies, compresses and optimises the site) then push everything up to the repo. I have a deploy script running on my server that picks up that release and pulls the repo down automatically. I don’t even need to SSH into my server. I just push to my repo and my code takes care of the rest.
Using this type of automation not only saves time, but eliminates a lot of mistakes. When I automate things I put tests in place for that help me catch any errors before they go anywhere near production.
Give a man a fish and he’ll eat for a day; teach a man to fish and he’ll eat for a lifetime; automate the fishing process and you’ll feed the world.