rails-erd: cannot find erd.pdf file
I installed graphviz and the gem as per the instructions. I then cd into my project.
proj$ bundle exec erd
It says
diagram saved to ‘erd.pdf’
But I cannot find any such file inside my project directory.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 5
- Comments: 36
I had the same problems reported above:
bundle exec erd
would printdiagram saved to 'erd.pdf'
, but no such file was created to disk. I found a fix that works for me:bundle exec erd --filetype=dot
erd.dot
and delete the lineconcentrate = "true";
dot -v -Tpdf erd.dot -o erd.pdf
If I didn’t comment out
concentrate = "true";
, GraphViz wouldSegmentation fault: 11
on both Debian with GraphViz installed via apt and Mac OSX with GraphViz installed via brew.Alternatively, I can generate
erd.pdf
if I create config/initializers/erd.rb with the patch recommended here from #70 :Version info:
bundle exec erd --filetype=dot
worked. It generated theerd.dot
file. But I am not able to convert this file to pdf usingdot -Tpdf erd.dot -o erd.pdf
. It showsSegmentation fault (core dumped)
message.Having this problem also.
Running into it as well on El Capitan
Actually this
erd --inheritance --direct --attributes=foreign_keys,content
is working…I’m getting this as well on 1.5.0 with GraphViz 2.38.0 I think this is due to the large number of models as it works when I limit it to just a handful of models in my app. Ex:
bundle exec rake erd only="Model1,Model2,Model3"