Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 1.11 KB

Code Samples

# Some helpful utility commands.

all: deploy

migrate:
    git push heroku master
    python project/manage.py syncdb --noinput --settings=settings.prod
    python project/manage.py migrate --noinput --settings=settings.prod

deploy:
    heroku pgbackups:capture --expire
    git push heroku master
    python project/manage.py syncdb --noinput --settings=settings.prod
    python project/manage.py migrate --noinput --settings=settings.prod
    python project/manage.py collectstatic --noinput --settings=settings.prod

style:
    python project/manage.py make_bookmarklet prod --settings=settings.dev
    git add project/static/js/bookmarklet.js
    git commit -m "[CN auto-commit]: rendered bookmarklet.js for production"
    git push heroku master
    python project/manage.py collectstatic --noinput --settings=settings.prod
    python project/manage.py make_bookmarklet dev --settings=settings.dev
    git add project/static/js/bookmarklet.js
    git commit -m "[CN auto-commit]: rendered bookmarklet.js back to development"