in reply to What is the best practice to migrate scripts from test to production
Perhaps something similar would be of use?
update: changed the paths#!/usr/bin/perl use strict; use warnings; my ($local, $root, $domain); BEGIN { $local++ if $ENV{HTTP_HOST} =~ m|localhost|; if ($local){ $root = q{/www/local}; } else{ $root = q{/path/on/webhoster/htdocs}; } $domain = q{sw/admin}; } use lib ( qq{$root/lib}, qq{$root/$domain/lib}, ); use Article; # rest of script...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What is the best practice to migrate scripts from test to production
by Anonymous Monk on Jun 27, 2007 at 18:21 UTC | |
by roboticus (Chancellor) on Jun 28, 2007 at 11:35 UTC |