Created
July 12, 2017 10:26
-
-
Save danhper/620c038a3fa9a7db74028af29335c056 to your computer and use it in GitHub Desktop.
Sample fabfile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import run, env, cd | |
env.hosts = ['host1', 'host2'] | |
def deploy(): | |
with cd("~/my-project"): | |
run("git fetch") | |
run("git checkout --force origin/master") | |
run("make setup") | |
run("make restart_app") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment