aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2014-03-04 15:12:33 +0000
committerHakim Cassimally <hakim@mysociety.org>2014-04-10 13:47:04 +0000
commit62c2c7c5ee458b8c35c66e6f8992df960eb6f0eb (patch)
tree8467c6fe5ee4aaf486007010a527d53102de62f9 /perllib
parentb82228ce014cc87866d976eeb3ce6e454e87c336 (diff)
bin/geocode script for testing geocoding
Run bin/geocode -h for options. Has: * configurable cobrand / config-file / geocoder * some diagnostics for missing cobrand Minor fixes rebased into this commit: * bin/geocode error if no --cobrand passed * bin/geocode docs and accept GEOCODER as string Notable TODOs remaining: * reverse geocoding, to double check that latitude actually maps somewhere useful (and is within Cobrand's boundaries) * diagnosis of relevant CONFIG settings * flag to disable caching
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet.pm b/perllib/FixMyStreet.pm
index cc5286bbb..de55e0070 100644
--- a/perllib/FixMyStreet.pm
+++ b/perllib/FixMyStreet.pm
@@ -12,8 +12,10 @@ use Sub::Override;
use mySociety::Config;
use mySociety::DBHandle;
+my $CONF_FILE = $ENV{FMS_OVERRIDE_CONFIG} || 'general';
+
# load the config file and store the contents in a readonly hash
-mySociety::Config::set_file( __PACKAGE__->path_to("conf/general") );
+mySociety::Config::set_file( __PACKAGE__->path_to("conf/${CONF_FILE}") );
Readonly::Hash my %CONFIG, %{ mySociety::Config::get_list() };
=head1 NAME