summaryrefslogtreecommitdiff
path: root/index.fpl
diff options
context:
space:
mode:
authorPaul Buetow (pluto.buetow.org) <paul@buetow.org>2013-09-07 17:44:24 +0200
committerPaul Buetow (pluto.buetow.org) <paul@buetow.org>2013-09-07 17:44:24 +0200
commite9b840ee20c12f9b5698eb1403ce38eb18ead62f (patch)
tree80fbd559009b4e682fb963e79d8c4e0cc8a419d8 /index.fpl
parent65b3c6841f3fcddaedcef9b2ad6b46c35dd61839 (diff)
rename config.txt into xerl.conf
Diffstat (limited to 'index.fpl')
-rwxr-xr-xindex.fpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.fpl b/index.fpl
index a7d41b4..3ac017c 100755
--- a/index.fpl
+++ b/index.fpl
@@ -10,7 +10,9 @@ use Socket;
use Sys::Hostname;
my $host = hostname();
-my $config = -e "config-$host.txt" ? "config-$host.txt" : 'config.txt';
+my $config = -e "xerldev-$host.conf" ? "xerldev-$host.conf" : (
+ -e "xerl-$host.conf" ? "xerl-$host.conf" : 'config.conf'
+);
while (FCGI::accept >= 0) {
my Xerl $xerl = Xerl->new( config => $config );