voormedia / rails-erd

Generate Entity-Relationship Diagrams for Rails applications
http://voormedia.github.io/rails-erd/
MIT License
4k stars 367 forks source link

Please create a file in '.../config/environment.rb' that loads your application environment. #367

Open sohwkjames opened 3 years ago

sohwkjames commented 3 years ago

What is expected to be in my /config/environment.rb? May I have some examples please

kerrizor commented 3 years ago

@sohwkjames Generally speaking, this error occurs when you're running it in a context where it can't load up Rails. This tools is aimed primarily at those applications, and should be run from the application's root folder. Are you running it against something that isn't Rails, or in a different location?