Featured post
deployment - How to build and install rails application dependencies on different hosts -
i have rails 3 application i'd deploy. deployment environment not have build tools installed , cannot install dependencies native extensions.
i have build host configured build tools can build native extensions.
how can deploy native extensions build host ?
i have tried doing bundle package
on build host , bundle install --local
on remote host. correctly installs gems without native extensions still tries build native extensions on production host.
it bad practice build on production servers.
when deploy django or rails build toolchain whatever os package management system doesn't cover. develop , deploy toolchain. assures uses same versions of tools.
to create toolchain need install packages , supporting executables in directory. need make sure relocatable.
for example use django on redhat. redhat doesn't use latest version of python, , many of python libs use rev more repository maintainers pick them up. result there no rpms latest software. create toolchain directory, compiled python on libs needed directory. bundle rpm deployment.
- toolchain/
- bin/
- python
- ...
- lib/
- python2.7/
- ...
- site-packages/
- ...
- include/
- ...
- bin/
- Get link
- X
- Other Apps
Comments
Post a Comment