1

我正在尝试在 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

什么是正确的路径?

4

2 回答 2

0

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

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

于 2015-04-03T17:45:10.300 回答
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

于 2013-12-14T22:16:02.103 回答