CS undergrad student with a love for tech. Currently hacking with JavaScript, Python and Golang.
One of the most basic ways in which a project gets deployed is by SSHing into a remote host followed by executing a few basic commands. Apart from deployment, this can also be useful for running any command you want on a remote host, such as when a CI/CD pipeline is triggered. In this article I'll be taking a look on how to deploy a basic project to a remote server through Gitlab CI using Python Fabric.
What is Fabric?
Fabric is an open source python library that is used to execute commands remotely over SSH.