use npm install for front end dependencies

This commit is contained in:
Pirate Praveen 2017-08-22 16:38:25 +05:30
parent bd9f7088b3
commit e7f6290a1e
2 changed files with 4 additions and 0 deletions

1
debian/gitlab.links vendored
View file

@ -1,6 +1,7 @@
var/lib/gitlab/public usr/share/gitlab/public
var/lib/gitlab/shared usr/share/gitlab/shared
var/lib/gitlab/db usr/share/gitlab/db
var/lib/gitlab/node_modules usr/share/gitlab/node_modules
var/lib/gitlab/.ssh usr/share/gitlab/.ssh
var/lib/gitlab/.bundle usr/share/gitlab/.bundle
var/lib/gitlab/secrets.yml etc/gitlab/secrets.yml

View file

@ -25,5 +25,8 @@ fi
# Restrict permissions for secret files
chmod 0700 ${gitlab_data_dir}/.gitlab_shell_secret
echo "Installing node modules"
runuser -u ${gitlab_user} -- sh -c 'npm install'
echo "Precompiling assets..."
runuser -u ${gitlab_user} -- sh -c 'bundle exec rake tmp:cache:clear assets:precompile'