From cda34805daebd0f868936f8e3feee9db55073b6b Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 16 Feb 2017 01:05:31 -0600 Subject: use NODE_ENV=production when compiling assets in upgrader script --- lib/gitlab/upgrader.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb index 632f663094c..4cc34e34460 100644 --- a/lib/gitlab/upgrader.rb +++ b/lib/gitlab/upgrader.rb @@ -67,7 +67,10 @@ module Gitlab end def env - { 'RAILS_ENV' => 'production' } + { + 'RAILS_ENV' => 'production', + 'NODE_ENV' => 'production' + } end def upgrade -- cgit v1.2.1