TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How should I manage binary dependencies for my gems in production?

1 pointsby nfmalmost 14 years ago
Bundler does an awesome job of making sure all the right gems are installed when I deploy my Rails apps.<p>However, some gems depend on binaries (eg Paperclip depends on ImageMagick, PDFKit depends on wkhtmltopdf) that may or may not be installed on the system being deployed to.<p>I've been bitten by this twice recently and need to figure out the best way to prevent it from happening again.<p>Is there a good way to ensure these external binaries and libraries are installed? Does bundler have any support for it? Should I just modify my capistrano deploy script? Should I include the binaries in my repository and make sure the gems look for them in the right place?<p>I can think of a few ways to approach this problem but want to know what you think works best, and why.<p>I currently have a bounty question on Stackoverflow[1] but haven't received much of a response and thought I'd ask here as well. I guess it's more of a sysadmin question than a programming question, but an ideal solution would be part of my repositories and deploy process.<p>[1] http://stackoverflow.com/questions/6147129/how-should-i-manage-binary-dependencies-for-my-gems-in-production

no comments

no comments