summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-16 01:04:08 -0600
committerMike Greiling <mike@pixelcog.com>2017-02-16 01:04:08 -0600
commit2f0d0b510d6542dc3a2758d5664e19f0b5b3c603 (patch)
treed77218cd00f4f6117c658b5ce53b20164d19e0f2
parenteca18c0bd108033d1e852b2ce8010ee01c259528 (diff)
downloadgitlab-ce-2f0d0b510d6542dc3a2758d5664e19f0b5b3c603.tar.gz
do not use --force command argument for yarn
-rw-r--r--doc/install/installation.md2
-rw-r--r--doc/update/8.16-to-8.17.md2
-rw-r--r--lib/tasks/yarn.rake2
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