在Heroku上安装gem到节点项目 [英] Install a gem to node project on Heroku
问题描述
我想为我的节点项目安装一个gem,该项目位于Heroku上。更具体地说,我想用Compass使用Sass,而Compass只能作为宝石使用。有些项目会将这个gem包装为node,但所有这些都需要gem。
有没有办法做到这一点?
'p>有就是已经这个话题(安装节点Heroku的项目宝石),但没有收到任何回复。
我收到了Heroku的回复。
$ b
您需要使用heroku multi buildpack才能拥有Ruby buildpack和Node buildpack:
https://github.com/ddollar/heroku-buildpack-multi
I would like to install a gem to my node project, which is hosted on Heroku. More specifically I would like to use Sass with Compass, and Compass is only available as a gem. There are projects that wrap this gem for node, but all of them require the gem.
Is there a way to do this?
There's already this topic (Installing gems on node heroku projects), but it hasn't received any replies.
I got a reply from Heroku.
"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"
这篇关于在Heroku上安装gem到节点项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!