From ab4514a37ebc941fd4e5aca8be5bd8d110cf74ca Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 25 Jan 2015 22:33:32 +0200 Subject: [PATCH] Connect to $ENV{GRUNTMASTER_DSN} if defined --- app.psgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.psgi b/app.psgi index a2a62ef..2fcdc00 100644 --- a/app.psgi +++ b/app.psgi @@ -15,7 +15,7 @@ use constant AUTH_TIMEOUT => 5 * 60; use constant ACCESSLOG_FORMAT => '%{X-Forwarded-For}i|%h %u "%r" %>s %b "%{Referer}i" "%{User-agent}i"'; use constant CONTENT_SECURITY_POLICY => q,default-src 'none'; script-src 'self' www.google-analytics.com; style-src 'self'; img-src 'self'; connect-src 'self'; frame-src free.timeanddate.com,; -my $db = Gruntmaster::Data->connect('dbi:Pg:'); +my $db = Gruntmaster::Data->connect($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:'); tie my %auth, 'Tie::Hash::Expire', {expire_seconds => 300}; -- 2.39.2