Deployment Automation via SSH With Python Fabric: How It Works

Written by agzuniverse | Published 2021/04/17
Tech Story Tags: python | gitlab | fabric | automation | deployment | cicd | ssh | tutorial | web-monetization | hackernoon-es

TLDR Python Fabric is an open source python library that is used to execute commands remotely over SSH. Fabric is compatible with Python 2 and 3 and can be used to deploy a basic project to a remote server through Gitlab CI using Python Fabric. Fabric uses a library called Paramiko under the hood for handling the SSH side of things, we can pass arguments to Paramiko's SSH client. Paramiko is a Python context manager with the help of Python context managers, but there are many other ways to do this as well.via the TL;DR App

no story

Written by agzuniverse | CS undergrad student with a love for tech. Currently doing things with JavaScript, Python and Golang.
Published by HackerNoon on 2021/04/17