使用heroku-buildpack-multi在heroku上使用ruby和graphviz

时间:2013-05-21 13:30:28

标签: ruby heroku graphviz

我正在尝试在heroku上部署我的应用程序。我使用declarative_authorization和图形可视化。

我安装了https://github.com/ddollar/heroku-buildpack-multi heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi并使用以下内容创建了.buildpacks

https://github.com/stigkj/heroku-buildpack-graphviz.git
https://github.com/heroku/heroku-buildpack-ruby.git

建筑工程正常:

-----> Fetching custom git buildpack... done
-----> Multipack app detected
=====> Downloading Buildpack: https://github.com/stigkj/heroku-buildpack-graphviz.git
=====> Detected Framework: graphviz
-----> Fetching and installing graphviz
       grapvhiz installed
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
=====> Detected Framework: Ruby/Rails
-----> Using Ruby version: ruby-1.9.3

但现在我在访问图表时得到了:

Errno::ENOENT in AuthorizationRulesController#graph
No such file or directory - dot -q -Tsvg

正确的道路是什么?

2 个答案:

答案 0 :(得分:0)

使用https://github.com/gokceneraslan/heroku-buildpack-graphviz代替https://github.com/stigkj/heroku-buildpack-graphviz.git

然后,添加此配置:

heroku config:add PATH:/usr/local/bin:/usr/bin:/bin:/app/bin

来源:https://github.com/pygram/pygram#deployment-on-heroku

答案 1 :(得分:0)

https://github.com/weibeld/heroku-buildpack-graphviz是Graphviz的稳定构建包(请参阅那里的说明)。

它会自动将dot和其他Graphviz可执行文件的位置添加到PATH