Nate Higgins
Nate Higgins

Reputation: 2114

Installing gems on node heroku projects

I'm writing a node app on heroku, and the app requires a gem, compass to be installed, for node-compass.

However, I can't seem to work out how you install gems in a node application on heroku. I have a Gemfile, which looks like so.

source "https://rubygems.org"
gem 'compass'

Have you managed to do this successfully before?

Upvotes: 5

Views: 859

Answers (2)

Nick F
Nick F

Reputation: 10112

In addition to a Gemfile, you need a buildpack and a Gemfile.lock. I wrote up how I got this working in this answer to a slightly different question, but I think it should answer this question too.

Upvotes: 1

Nicky McCurdy
Nicky McCurdy

Reputation: 19554

According to an official reply from Heroku for this question:

You would need to use the heroku multi buildpack in order to have both the Ruby buildpack and the Node buildpack: https://github.com/ddollar/heroku-buildpack-multi

Upvotes: 1

Related Questions