Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaaro committed Mar 19, 2012
1 parent 8d77b91 commit cefa994
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
Heroku buildpack: Python
Unofficial Heroku buildpack: Python + npm dependency resolution
========================

This is a [Heroku buildpack](http://devcenter.heroku.com/articles/buildpacks) for Python apps.
It uses [virtualenv](http://www.virtualenv.org/) and [pip](http://www.pip-installer.org/).

Differences
-----------

The main difference from the official Python buildpack is support for node dependencies via [npm](http://npmjs.org).

This is accomplished via an `npm_requirements.txt` which must be in the base directory (along with the `requirements.txt` file that is used by pip)

If an `npm_requirements.txt` file is present it works similar to the way you're used to with pip.

Each line of the file is appended to `npm install` so for example

npm_requirements.txt:

coffee-script
less@1.0.0

would result in the following commands being run to resolve the dependencies:

$ npm install -g coffee-script
$ npm install -g less@1.0.0

Why install Node along with Python?
-----------------------------------

Primarily because it's desirable to use technologies like [less-css](http://lesscss.org/) and [coffeescript](http://coffeescript.org/) on the server (with something like [django compressor](https://github.com/jezdez/django_compressor) for example)

Usage
-----

Expand Down

0 comments on commit cefa994

Please sign in to comment.