aboutsummaryrefslogtreecommitdiffstats
path: root/script/fixmystreet_app_create.pl
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2015-01-15 15:33:21 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2015-01-19 16:35:37 +0000
commit8e6d48d5ee351594fc92f1e680ba4a2219ed57ca (patch)
treea32bdde6047f357663883a995393a945e1dadff2 /script/fixmystreet_app_create.pl
parent96dd07e7c1dab2c8f9250af435caad2c2818b5a2 (diff)
Remove need for cron-wrapper with existing scripts
Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
Diffstat (limited to 'script/fixmystreet_app_create.pl')
-rwxr-xr-xscript/fixmystreet_app_create.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/script/fixmystreet_app_create.pl b/script/fixmystreet_app_create.pl
index c0ec0c898..f43c4ab82 100755
--- a/script/fixmystreet_app_create.pl
+++ b/script/fixmystreet_app_create.pl
@@ -3,6 +3,13 @@
use strict;
use warnings;
+BEGIN {
+ use File::Basename qw(dirname);
+ use File::Spec;
+ my $d = dirname(File::Spec->rel2abs($0));
+ require "$d/../setenv.pl";
+}
+
use Catalyst::ScriptRunner;
Catalyst::ScriptRunner->run('FixMyStreet::App', 'Create');