Adding paperclip and imagemagick pathing to environment.rb of rails project -
qustion:
what correct line of code should add insure paperclip , imagemagick linked enviroment.rb on side note there common caveats should mindful of when deploying paperclip/imagemagick on vps (imagemagick on vps install , same path)
ok i'm new rails, ubuntu , i'm trying install paperclip. askes add pathing in config/enviorment.rb file paperclip can link imagemagick. link reference
to ensure does, on command line, run convert (one of imagemagick utilities). give path utility installed. example, might return /usr/local/bin/convert.
then, in environment config file, let paperclip know there adding directory path.
running command yields:
/usr/bin/convert
link old video old video of installing paperclip adds config/enviorment.rb
config.gem 'paperclip'
in config/environments/development.rb add following line:
paperclip.options[:command_path] = "/usr/bin/"
this points parent directory of convert application, because want access paperclip commands, not convert.
you need repeat above steps production.rb , test.rb if need run environments (assuming run them on same machine, same command path).
Comments
Post a Comment