mislav/git-deploy — Issue #12: Compile Rmagic after deploy
Author: berkes
Created: 2011-11-21 08:44:33+00:00
State: open

Somehow the build of rmagic fails in my setup. But builds just fine when bundled from the commandline by hand.

It might have to do with my setup of bundler and vendored gems (I am kinda new to vendoring), so please just tell me off, if I am talking nonsense :)

What I tried to achieve is to "Deploy multiple rails apps, with multiple gems, rails and versions of both, on one server (ngnix/passenger)".

Before, I would bundle and vendor the gems locally, add them to git, push to production and then run, amongst others, "gem install -i vendor/bundle/ruby/1.8/ rmagick" on the server. Maybe I am just doing it wrong :).

But maybe this can be solved in a generic way, by invoking a "rake deploy" if that rake task exists. That way, developers can include any custom tasks, such as building native extensions, calling other custom rake tasks and so on.