summaryrefslogtreecommitdiff
path: root/lib/gitlab
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2017-02-17 19:46:23 +0000
committerClement Ho <clemmakesapps@gmail.com>2017-02-17 19:46:23 +0000
commitf2552696277a502927b6ceaf5a2c4ec78afbc48e (patch)
treedd1cb5d8c9a537b491ff4f78c9432f913ea2ee8a /lib/gitlab
parent63cb6c843fd6b7f99042049c31643bbeceef4a95 (diff)
parentc77b68d627f9f8e8eaacd61bc352aadf0b904c16 (diff)
downloadgitlab-ce-f2552696277a502927b6ceaf5a2c4ec78afbc48e.tar.gz
Merge branch 'add-yarn-documentation' into 'master'
Update documentation to include yarn in our dependencies See merge request !9316
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/upgrader.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb
index 7fd4935191c..4cc34e34460 100644
--- a/lib/gitlab/upgrader.rb
+++ b/lib/gitlab/upgrader.rb
@@ -60,15 +60,17 @@ module Gitlab
"Get latest code" => %W(#{Gitlab.config.git.bin_path} fetch),
"Switch to new version" => %W(#{Gitlab.config.git.bin_path} checkout v#{latest_version}),
"Install gems" => %W(bundle),
- "Install node modules" => %W(npm install --production),
"Migrate DB" => %W(bundle exec rake db:migrate),
- "Recompile assets" => %W(bundle exec rake gitlab:assets:clean gitlab:assets:compile),
+ "Recompile assets" => %W(bundle exec rake yarn:install gitlab:assets:clean gitlab:assets:compile),
"Clear cache" => %W(bundle exec rake cache:clear)
}
end
def env
- { 'RAILS_ENV' => 'production' }
+ {
+ 'RAILS_ENV' => 'production',
+ 'NODE_ENV' => 'production'
+ }
end
def upgrade