Commit 2f0d0b51 authored by Mike Greiling's avatar Mike Greiling

do not use --force command argument for yarn

parent eca18c0b
...@@ -468,7 +468,7 @@ Check if GitLab and its environment are configured correctly: ...@@ -468,7 +468,7 @@ Check if GitLab and its environment are configured correctly:
### Compile Assets ### 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 sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production
### Start Your GitLab Instance ### Start Your GitLab Instance
......
...@@ -118,7 +118,7 @@ sudo -u git -H bundle clean ...@@ -118,7 +118,7 @@ sudo -u git -H bundle clean
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
# Install/update frontend asset dependencies # 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 # Clean up assets and cache
sudo -u git -H bundle exec rake gitlab:assets:clean gitlab:assets:compile cache:clear RAILS_ENV=production sudo -u git -H bundle exec rake gitlab:assets:clean gitlab:assets:compile cache:clear RAILS_ENV=production
......
...@@ -24,7 +24,7 @@ namespace :yarn do ...@@ -24,7 +24,7 @@ namespace :yarn do
desc 'Install Node dependencies with Yarn' desc 'Install Node dependencies with Yarn'
task install: ['yarn:available'] do 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) abort 'Error: Unable to install node modules.'.color(:red)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment