node package manager


Canvas fork including Cairo binaries for Heroku deployment

HEROKU Node Canvas

A simple fork just to get this guy working on heroku.

  • Includes precompiled cairo modules in ./cairo

  • Has a modified wscript in order to reference that precompiled cairo stuff

  • Loses JPEG and GIF support ... as I couldn't figure those out and I didn't need them.

heroku create --stack cedar

create a .env file in your application with this contents:

LD_PRELOAD='/app/node_modules/canvas/cairo/ /app/node_modules/canvas/lib/ /app/node_modules/canvas/lib/'
  • LD_PRELOAD will tell heroku to always preload those libs
  • LD_LIBRARY_PATH will tell heroku where to find aditional dinamic libs