loaders can't be found in system path now

This commit is contained in:
Pirate Praveen 2017-09-15 14:00:46 +05:30
parent 9a6241d565
commit e71e374c7f

View file

@ -28,8 +28,6 @@ chmod 0700 ${gitlab_data_dir}/.gitlab_shell_secret
echo "Installing node modules"
runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/node_modules'
runuser -u ${gitlab_user} -- sh -c 'npm install'
runuser -u ${gitlab_user} -- sh -c 'ln -fs /usr/lib/nodejs/exports-loader node_modules'
runuser -u ${gitlab_user} -- sh -c 'ln -fs /usr/lib/nodejs/raw-loader node_modules'
runuser -u ${gitlab_user} -- sh -c 'rm -rf node_modules/webpack'
runuser -u ${gitlab_user} -- sh -c 'NODE_PATH=/usr/share/gitlab/node_modules webpack --config config/webpack.config.js'