Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 321 Bytes
from fabric.api import local, env
def heroku(cmd):
local("heroku run '{0}'".format(cmd))
def heroku_django(cmd):
heroku("python manage.py {0}".format(cmd))
def deploy():
local('git push heroku master')
heroku_django('collectstatic --noinput')
heroku_django('syncdb')
#heroku_django('migrate')