aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-02-22 16:28:29 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-02-22 16:28:29 +0000
commitb1bb332539abed1c0efb19d2d3f2eef1fca00fb1 (patch)
tree727d00db4c64ac92e757bacfc2facb5e5ebfc1b8 /perllib/FixMyStreet/App.pm
parentaec7dc414ef8a31ac66a3420468d3b8def1a3cc4 (diff)
use absolute path to config file
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r--perllib/FixMyStreet/App.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 4ec941195..60c25d0be 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -2,11 +2,6 @@ package FixMyStreet::App;
use Moose;
use namespace::autoclean;
-BEGIN {
- use mySociety::Config;
- mySociety::Config::set_file("conf/general");
-}
-
use Catalyst::Runtime 5.80;
use Catalyst qw/
@@ -18,6 +13,11 @@ extends 'Catalyst';
our $VERSION = '0.01';
+BEGIN {
+ use mySociety::Config;
+ mySociety::Config::set_file( __PACKAGE__->path_to("conf/general") );
+}
+
# Configure the application.
#
# Note that settings in fixmystreet_app.conf (or other external