I have a rails 3 application that I’d like to deploy. My deployment environment does not have build tools installed and cannot then install dependencies with native extensions.
I have a build host configured with build tools that can build the native extensions.
How can I deploy the native extensions from my build host ?
I have tried doing bundle package on the build host and bundle install --local on the remote host. It correctly installs gems without native extensions but it still tries to build native extensions on the production host.
I’ve ended up to a custom deploy.rb. Hoping I will be able to relase it as a gem that extends Capistrano (still not totally happy with it though)