Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
starter django application to have django-pipeline deployed on heroku with coffee and stylus support
Python CoffeeScript
branch: master
Failed to load latest commit information.
example Updating info
.gitignore Adding structure
Procfile Adding structure
README.md Updating docs
npm_requirements.txt Adding structure
requirements.txt Adding structure

README.md

django-coffee-stylus-heroku

starter application to have django-pipeline running on heroku, precompiling coffee and stylus assets as needed.

dependencies

production (heroku) deploy

  1. create the stack on heroku

    heroku create --stack cedar --buildpack git@github.com:jiaaro/heroku-buildpack-django.git
    
  2. push to heroku

    git push heroku master
    
  3. add /app/bin to your PATH in Heroku (all node deps including node will be symlinked here)

    heroku config:add PATH=bin:node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/app/bin
    

how it works

the buildpack enables the npm_requirements.txt file where you enter all of your node dependencies.

on heroku push, all npm requirements are added and symlinked under /app/bin (eg. /app/bin/node, /app/bin/coffee, etc)

in settings_production.py simply override pipeline settings to point to these symlinks:

PIPELINE_COFFEE_SCRIPT_BINARY = '/app/bin/coffee'
PIPELINE_STYLUS_BINARY = '/app/bin/stylus'
Something went wrong with that request. Please try again.