From 82626c1adf7cec8b87488cfc855c17f4bc4c5bd4 Mon Sep 17 00:00:00 2001 From: bserie Date: Tue, 28 Feb 2017 12:03:39 +0100 Subject: [PATCH] Ajout de NPM (sigh...) --- HowtoGitlab/8.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/HowtoGitlab/8.md b/HowtoGitlab/8.md index 128235b3..6ac93ce3 100644 --- a/HowtoGitlab/8.md +++ b/HowtoGitlab/8.md @@ -481,6 +481,20 @@ $ bundle exec rake gitlab:check RAILS_ENV=production Si tout est au vert, la migration s'est bien passée ! +## À propose de la version 8.17 + +La version 8.17 ajoute une dépendance à NodeJS/NPM pour les assets. Il faut donc l'[installer](https://wiki.evolix.org/HowtoNodeJS), et faire quelques corrections, puis « packer » les assets. + +``` +# ln -s /usr/bin/nodejs /usr/bin/node +# sudo -iu foo +$ cd gitlab +$ git config --global url."https://github.com/".insteadOf git@github.com:github: +$ git config --global url."https://".insteadOf git:// +$ npm install +$ bundle exec rake webpack:compile RAILS_ENV=production +``` + ## Mise à jour majeure En attente de la version 9 :)