Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on Heroku needs updating #741

Closed
chico opened this issue Mar 21, 2016 · 5 comments
Closed

Installation on Heroku needs updating #741

chico opened this issue Mar 21, 2016 · 5 comments

Comments

@chico
Copy link

chico commented Mar 21, 2016

I followed https://github.com/Automattic/node-canvas/wiki/Installation-on-Heroku but it's now out of date. Heroku now supports multiple buildpacks out of the box.

The simplest way to get node-canvas working is to add the cairo buildpack using the following heroku command:

heroku buildpacks:add --index 1 https://github.com/mojodna/heroku-buildpack-cairo.git
@mini-eggs
Copy link

Thanks you @chico

@mapmeld
Copy link

mapmeld commented Jul 18, 2017

note that this workaround hasn't been updated for heroku-16 stack, you need to have cedar-14 stack

See the end of this thread if you have old Heroku CLI it may throw an error when setting cedar-14 stack

mojodna/heroku-buildpack-cairo#16

@rista404
Copy link

I just tested this with version 2.0.0-alpha.12, and got it working with this buildpack: https://github.com/rista404/heroku-buildpack-cairo

Just add it before nodejs buildpack and it should be working.

@eko24ive
Copy link

@rista404 I was able to get node-canvas running on Heroku without any issues (see: #843 (comment))
Although it looks like you are using cedar-14 stack, while I'm using heroku-16 - maybe that's the difference

@zbjornson
Copy link
Collaborator

In addition to the other solutions commented above... I just successfully installed canvas 2.0.0-alpha.12 and 1.6.11 on the vanilla heroku-16 stack. Both just worked thanks to prebuilds. If anyone has a need to make a from-source build work, I can look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants