# always assume anything to do with files is from project root
+use constant LOG_FILE => '/tmp/gorillanest.log';
use constant GIT_ROOT => 'git'; # directory containing all browsable $users/$repositories
use constant DB_FILE => 'gorillanest.sqlite3'; # sqlite3 database file location
use constant TEMPLATE_ROOT => 'template'; # template directory
# significant dirs only
sub GN::directories {
my $root = $_[0];
- opendir my $dir, $root or die "Cannot open directory: $!";
+ opendir my $dir, $root or die "$root: $!";
my @directories;
my %drop = (
'.' => 0,
}
sub GN::main {
- open STDERR, '>', '/tmp/gorillanest.log' or die "You Will Never Ever See This Message Hopefully: $!";
+ open STDERR, '>', LOG_FILE or die LOG_FILE . ": $!";
my $sock = FCGI::OpenSocket('/tmp/gorillanest.socket', 100);
try {
my $root = GIT_ROOT;