Well, what a good way is depends on your infrastructure. Using NFS is great if you have a homogeneous environment. Note there's no need for setting PERL5LIB. For instance, you might want to share your entire
/usr/local, and have perl installed in
/usr/local. Or you install perl in
/net/server/pkg/perl5, and replace your binary
/usr/bin/perl with a symlink to
/net/server/pkg/perl5/bin/perl. Now, such an action may require moving or reinstalling all your code. But you do it once, and from then on each deployment needs to be done only once. Even in an environment with different platforms sharing over NFS will work, although you'll need to link to different binaries. But the libraries can be shared, and deployment of new modules need to be done once for pure Perl modules, and once for each platform for XS modules. And if it's just the local stuff you worry about, you could just share your
site_lib directory.
But if you don't go the NFS was, there's no need to do a make on every box you deploy on. Make it once for each platform, and distribute the created files. The distribution is fairly easy to automate, for instance by scp, or even using rsync and a cron job. (So you just build/install once for each platform, and the cron job takes care of syncing - a big advantage of using a cron job is that even machines that are down when you deploy will eventually get updated without having you to remind yourself - works great for laptops too).
I've used both techniques in the past succesfully - and not just for Perl.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.