Skip to content

Instantly share code, notes, and snippets.

@ragingbal
Created March 13, 2016 11:25
Show Gist options
  • Select an option

  • Save ragingbal/f245b653cf7ad49a78fe to your computer and use it in GitHub Desktop.

Select an option

Save ragingbal/f245b653cf7ad49a78fe to your computer and use it in GitHub Desktop.
execute fabfile from another python script
from fabric.context_managers import settings
from fabfile import deployFiles, deployConfiguration
with settings(host_string='user@192.168.xx.xx'):
deployFiles()
deployConfiguration('master', 7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment