Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2f0d0b51
Commit
2f0d0b51
authored
Feb 16, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not use --force command argument for yarn
parent
eca18c0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
doc/install/installation.md
doc/install/installation.md
+1
-1
doc/update/8.16-to-8.17.md
doc/update/8.16-to-8.17.md
+1
-1
lib/tasks/yarn.rake
lib/tasks/yarn.rake
+1
-1
No files found.
doc/install/installation.md
View file @
2f0d0b51
...
@@ -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
...
...
doc/update/8.16-to-8.17.md
View file @
2f0d0b51
...
@@ -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
...
...
lib/tasks/yarn.rake
View file @
2f0d0b51
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment