cool script ... really digging this approach of cutting out the middleman and roll your own devops code without the baggage of Ansible or such ... in my current startup I initially wrote our server side from scratch then need some way to deploy from laptop onto our remote vps servers so I started simple and wrote a set of bash script to deploy our git repo, recompile the project up on vps ... since its grown into an uber script with can start from a freshly minted virgin vps box and finish with our entire site running on a set of containers with the webhook running auto kicking off a recompile/deploy ... oh and it spins up all the ancillary servers like mongo, nginx, haproxy as well as a devops container to orchestrate the machinations as the system gurgles along post launch
now I'm liking this side of the shop ... devops demands a much wider girth of problem solving skills which is an evergreen role with tons of freedom and challenges