From e3f9ac50a9febe0819d1a33ce5140f06759167ae Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Fri, 8 Aug 2014 21:22:21 +0900 Subject: [PATCH] Enable Graphviz on Heroku. Graphviz is installed via heroku-buildpack-graphviz-src and the location of dot(1) is automatically added to PATH. There is also heroku-buildpack-graphviz-deb which should be easier to install, but the Debian package installed has a font style problem. --- .buildpacks | 1 + .graphviz | 1 + bin/setup_heroku | 1 + 3 files changed, 3 insertions(+) create mode 100644 .graphviz diff --git a/.buildpacks b/.buildpacks index 5fc0f87b..529e4561 100644 --- a/.buildpacks +++ b/.buildpacks @@ -1,2 +1,3 @@ https://github.com/cantino/heroku-selectable-procfile.git https://github.com/heroku/heroku-buildpack-ruby.git +https://github.com/weibeld/heroku-buildpack-graphviz-src.git diff --git a/.graphviz b/.graphviz new file mode 100644 index 00000000..5eb139e0 --- /dev/null +++ b/.graphviz @@ -0,0 +1 @@ +http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.38.0.tar.gz diff --git a/bin/setup_heroku b/bin/setup_heroku index e1f043e3..b43714fb 100755 --- a/bin/setup_heroku +++ b/bin/setup_heroku @@ -99,6 +99,7 @@ set_value 'PROCFILE_PATH', "deployment/heroku/Procfile.heroku", force: false set_value 'ON_HEROKU', "true" set_value 'FORCE_SSL', "true" set_value 'DOMAIN', "#{app_name}.herokuapp.com", force: false +set_value 'USE_GRAPHVIZ_DOT', 'dot' unless $config['INVITATION_CODE'] puts "You need to set an invitation code for your Huginn instance. If you plan to share this instance, you will"