Skip to content

Instantly share code, notes, and snippets.

@adrianomargarin
Last active October 3, 2017 15:39
Show Gist options
  • Save adrianomargarin/73f00109ffa5c5cd556a946c9d38bb09 to your computer and use it in GitHub Desktop.
Save adrianomargarin/73f00109ffa5c5cd556a946c9d38bb09 to your computer and use it in GitHub Desktop.
# 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