views:

78

answers:

1

I have installed image magick on my mac os x computer and now I want to deploy it to heroku. I've installed the the paperclip plugin on heroku but I get this error when uploading an image:

Paperclip::CommandNotFoundError

I had this error before when I didn't have imagemagick instaledl on my computer before but now that I want to deploy it, how do I get image magick to work on heroku?

A: 

Do you have the RMagick gem included in your app on Heroku? It's necessary for interfacing between your Ruby code and ImageMagick.

ImageMagick is part of the Heroku platform by default, but you have to specify that you need the RMagick gem for your app. I'm guessing you have this installed locally so it works there, but it's missing from your Gemfile or gems manifest (depending on Heroku stack version).

tfe
what do i need to do for the rmagick gem? i'm running the stack "bamboo-ree-1.8.7"
spin-docta
See the Heroku docs here for how to install gems: http://docs.heroku.com/gems.
tfe
You'll also want to make sure you include it in your Rails app, however your version of rails specifies gem dependencies (`config.gem` command in `config/environment.rb` for Rails 2.x).
tfe
i'm using rails 3.0, what do i have to do for that version? thanks
spin-docta
I've not yet used Rails 3 personally, but I believe it just loads all the gems listed in your `Gemfile`.
tfe