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.

Akinori MUSHA 9 years ago
parent
commit
e3f9ac50a9
3 changed files with 3 additions and 0 deletions
  1. 1 0
      .buildpacks
  2. 1 0
      .graphviz
  3. 1 0
      bin/setup_heroku

+ 1 - 0
.buildpacks

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

+ 1 - 0
.graphviz

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

+ 1 - 0
bin/setup_heroku

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