diff --git a/environments/dev/hiera/common.json b/environments/dev/hiera/common.json index 6111ec7..70e1844 100644 --- a/environments/dev/hiera/common.json +++ b/environments/dev/hiera/common.json @@ -37,7 +37,7 @@ ], /* Whether or not to do a production build */ - "do_production_build": "true", + "do_production_build": "false", /* Grasshopper repository */ "app_ui_path": "/opt/grasshopper-ui", @@ -67,5 +67,4 @@ /* Apache directives */ "ghservice::apache::version": "", "ghservice::apache::enable_basic_auth": "true" - } diff --git a/environments/local/hiera/common.json b/environments/local/hiera/common.json index a0f8b0a..1e65891 100644 --- a/environments/local/hiera/common.json +++ b/environments/local/hiera/common.json @@ -61,5 +61,4 @@ /* Apache directives */ "ghservice::apache::version": "", "ghservice::apache::enable_basic_auth": "false" - } diff --git a/modules/ui/manifests/init.pp b/modules/ui/manifests/init.pp index d401f6c..9502a00 100644 --- a/modules/ui/manifests/init.pp +++ b/modules/ui/manifests/init.pp @@ -10,8 +10,8 @@ # Create a command for generating the production build $production_build_cmd = hiera('do_production_build') ? { 'true' => 'npm install -d && node ./node_modules/.bin/grunt', - 'false' => 'true', - default => 'true', + 'false' => 'npm install -d && node ./node_modules/.bin/grunt exec:compileCSS', + default => 'true' } class { "::ui::install::${install_method}":