Last active
October 3, 2017 15:39
-
-
Save adrianomargarin/73f00109ffa5c5cd556a946c9d38bb09 to your computer and use it in GitHub Desktop.
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
# Python3 | |
# fabric3 | |
# Use $fab deploy | |
from fabric.api import local | |
def deploy(): | |
commands = [ | |
"git push heroku master --force", | |
"heroku run python manage.py migrate", | |
"heroku open" | |
] | |
local(' && '.join(commands)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment