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.
This commit is contained in:
Akinori MUSHA 2014-08-08 21:22:21 +09:00
parent d18641d701
commit e3f9ac50a9
3 changed files with 3 additions and 0 deletions

View file

@ -1,2 +1,3 @@
https://github.com/cantino/heroku-selectable-procfile.git https://github.com/cantino/heroku-selectable-procfile.git
https://github.com/heroku/heroku-buildpack-ruby.git https://github.com/heroku/heroku-buildpack-ruby.git
https://github.com/weibeld/heroku-buildpack-graphviz-src.git

1
.graphviz Normal file
View file

@ -0,0 +1 @@
http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.38.0.tar.gz

View file

@ -99,6 +99,7 @@ set_value 'PROCFILE_PATH', "deployment/heroku/Procfile.heroku", force: false
set_value 'ON_HEROKU', "true" set_value 'ON_HEROKU', "true"
set_value 'FORCE_SSL', "true" set_value 'FORCE_SSL', "true"
set_value 'DOMAIN', "#{app_name}.herokuapp.com", force: false set_value 'DOMAIN', "#{app_name}.herokuapp.com", force: false
set_value 'USE_GRAPHVIZ_DOT', 'dot'
unless $config['INVITATION_CODE'] 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" puts "You need to set an invitation code for your Huginn instance. If you plan to share this instance, you will"