简体   繁体   English

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

[英]Using ruby and graphviz on heroku with heroku-buildpack-multi

I'm trying to deploy my app on heroku. 我正在尝试在heroku上部署我的应用程序。 I use declarative_authorization with graphical visualisation. 我将declarative_authorization与图形可视化结合使用。

I installed https://github.com/ddollar/heroku-buildpack-multi heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi and created .buildpacks with: 我安装了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

Building works fine: 建筑工程良好:

-----> 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

But now I get when I access the graph: 但是现在当我访问图形时,我得到了:

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

What is the correct path? 正确的路径是什么?

https://github.com/weibeld/heroku-buildpack-graphviz is a stable buildpack for Graphviz (see instructions there). https://github.com/weibeld/heroku-buildpack-graphviz是用于Graphviz的稳定buildpack(请参见其中的说明)。

It automatically adds the location of dot and other Graphviz executables to the PATH . 它会自动将dot和其他Graphviz可执行文件的位置添加到PATH

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM