summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-16 01:05:31 -0600
committerMike Greiling <mike@pixelcog.com>2017-02-16 01:05:31 -0600
commitcda34805daebd0f868936f8e3feee9db55073b6b (patch)
tree44e9c64c1806ad1431d9dc745aac1a8feb71850f
parent2f0d0b510d6542dc3a2758d5664e19f0b5b3c603 (diff)
downloadgitlab-ce-cda34805daebd0f868936f8e3feee9db55073b6b.tar.gz
use NODE_ENV=production when compiling assets in upgrader script
-rw-r--r--lib/gitlab/upgrader.rb5
1 files changed, 4 insertions, 1 deletions
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