From 2f0d0b510d6542dc3a2758d5664e19f0b5b3c603 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 16 Feb 2017 01:04:08 -0600 Subject: do not use --force command argument for yarn --- doc/install/installation.md | 2 +- doc/update/8.16-to-8.17.md | 2 +- lib/tasks/yarn.rake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/install/installation.md b/doc/install/installation.md index ae6c2626002..f77e1652ac2 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -468,7 +468,7 @@ Check if GitLab and its environment are configured correctly: ### Compile Assets - sudo -u git -H yarn install --force --pure-lockfile + sudo -u git -H yarn install --production --pure-lockfile sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production ### Start Your GitLab Instance diff --git a/doc/update/8.16-to-8.17.md b/doc/update/8.16-to-8.17.md index f2369403487..98574d2067b 100644 --- a/doc/update/8.16-to-8.17.md +++ b/doc/update/8.16-to-8.17.md @@ -118,7 +118,7 @@ sudo -u git -H bundle clean sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production # Install/update frontend asset dependencies -sudo -u git -H yarn install --force --pure-lockfile +sudo -u git -H yarn install --production --pure-lockfile # Clean up assets and cache sudo -u git -H bundle exec rake gitlab:assets:clean gitlab:assets:compile cache:clear RAILS_ENV=production diff --git a/lib/tasks/yarn.rake b/lib/tasks/yarn.rake index 351f6887f7b..2ac88a039e7 100644 --- a/lib/tasks/yarn.rake +++ b/lib/tasks/yarn.rake @@ -24,7 +24,7 @@ namespace :yarn do desc 'Install Node dependencies with Yarn' task install: ['yarn:available'] do - unless system('yarn install --force --pure-lockfile --ignore-engines') + unless system('yarn install --pure-lockfile --ignore-engines') abort 'Error: Unable to install node modules.'.color(:red) end end -- cgit v1.2.1