From 4e53cafd46d27fdbe6bbc9c804e3885464dcb8e9 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 29 Nov 2018 12:18:00 +0000 Subject: [PATCH] Use NOTIFY_ENVIRONMENT to test if running locally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This matches what we tell people, in the README, to put in their local environment.sh It doesn’t matter what Jenkins sets this to, as long as it’s not `'development'`. We think Jenkins isn’t setting it at all (in which case the value will be `undefined`) --- gulpfile.babel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index da3176d02..435b5dcf6 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -37,7 +37,7 @@ gulp.task('copy:govuk_template:css', () => gulp.src(paths.template + 'assets/sty })) .on('error', plugins.sass.logError) .pipe(plugins.cssUrlAdjuster({ - prependRelative: process.env.NOTIFY_ADMIN_ENVIRONMENT == 'config.Development' ? '/static/' : '/', + prependRelative: process.env.NOTIFY_ENVIRONMENT == 'development' ? '/static/' : '/', })) .pipe(gulp.dest(paths.dist + 'stylesheets/')) );