do not use --force command argument for yarn

This commit is contained in:
Mike Greiling 2017-02-16 01:04:08 -06:00
parent eca18c0bd1
commit 2f0d0b510d
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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