Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-16 10:05:31 +0300
committerMike Greiling <mike@pixelcog.com>2017-02-16 10:05:31 +0300
commitcda34805daebd0f868936f8e3feee9db55073b6b (patch)
tree44e9c64c1806ad1431d9dc745aac1a8feb71850f /lib/gitlab/upgrader.rb
parent2f0d0b510d6542dc3a2758d5664e19f0b5b3c603 (diff)
use NODE_ENV=production when compiling assets in upgrader script
Diffstat (limited to 'lib/gitlab/upgrader.rb')
-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