Skip to content

Instantly share code, notes, and snippets.

@eshandas
eshandas / fabfile.py
Last active July 27, 2022 17:08
Fabric 2 file for helping in deployments and other housekeeping tasks
# Fabfile to:
# - update the remote system(s)
# - download and install an application
from fabric import Connection
from fabric import task
import os
import environ
root = environ.Path(__file__) - 1 # one folder back (/manage - 3 = /)