Heroku指南针buildpack指南针失败 [英] Heroku compass buildpack compass fail

查看:200
本文介绍了Heroku指南针buildpack指南针失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将指南针构建包推送到heroku服务器, https: //github.com/stephanmelzer/heroku-buildpack-nodejs-grunt-compass



直到最近才开始工作,我不确定发生了什么heroku方面,它不再工作了,给了我这个错误:

  bash:/app/.gem/ruby/1.9 .1 / bin / compass:/app/vendor/ruby-1.9.2/bin/ruby:坏解释器:没有这样的文件或目录

我不确定发生了什么事情,他们是否改变了ruby版本或者其他什么。

有人知道可能是什么问题和解决方法。

我使用Cedar堆栈,运行节点

解决方案

喜欢在接受的答案中添加更多解释,因为我有这个完全相同的问题,我相信大多数人都需要取消旧的buildpack,如下所示:



首先取消旧的buildpack并指向buildpack-multi:

  heroku config:unset BUILDPACK_URL 
heroku config:add BUILDPACK_URL = https://github.com/ddollar/heroku-buildpack-multi.git

Buildpack multi需要你添加你自己的.buildpack文件。这个配置是我最终成功使用的:

  cat .buildpack 
https://github.com/heroku /heroku-buildpack-nodejs.git
https://github.com/heroku/heroku-buildpack-ruby.git

这里是我的Gemfile只能拾取指南针:

  cat Gemfile 
source'https: //rubygems.org'
gem'compass'

现在您需要:

 捆绑安装

其中将添加一个Gemfile.lock



将所有内容提交到git并推回到heroku。这将启用你的新的多buildpack配置,并希望让你备份和运行。您应该可以看到nodejs和ruby buildpacks按照上述配置顺序下载。



免责声明:这可能是时间敏感的材料,因为heroku可能会改变某些情况即将到来的几个月。


I am trying to push a compass build-pack to heroku server, https://github.com/stephanmelzer/heroku-buildpack-nodejs-grunt-compass

It use to work until recently and I am not sure what happened on heroku side, it doens't work anymore and giving me this error :

bash: /app/.gem/ruby/1.9.1/bin/compass: /app/vendor/ruby-1.9.2/bin/ruby: bad interpreter: No such file or directory

I am not sure what happened did they change the ruby version or something

Does someone knows what can be the issue and the fix.

I use Cedar stack, running node

解决方案

I'd like to add to the accepted answer with a bit more explanation since I had this exact same issue and I believe most folks will need to unset an old buildpack as follows:

First unset your old buildpack and point to the buildpack-multi:

heroku config:unset BUILDPACK_URL
heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

Buildpack multi requires you to add your own .buildpacks file. This configuration is what I ended up using successfully:

cat .buildpacks
https://github.com/heroku/heroku-buildpack-nodejs.git
https://github.com/heroku/heroku-buildpack-ruby.git

Here's my Gemfile to pickup only Compass:

cat Gemfile
source 'https://rubygems.org'
gem 'compass'

Now you need to do:

bundle install

Which will add a Gemfile.lock

Commit everything to git and push back to heroku. This will kick in your new multi buildpack configuration and hopefully get you back up and running. You should see both the nodejs and ruby buildpacks download serially per above configuration.

Disclaimer: This is likely time-sensitive material as heroku might very well change something over the upcoming months.

这篇关于Heroku指南针buildpack指南针失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆