From 84dff9c12c4d46671a6e650fed13023557bcdda2 Mon Sep 17 00:00:00 2001 From: bserie Date: Wed, 17 May 2017 16:14:53 +0200 Subject: [PATCH] diverses modifs, tel que yarn au lieu de npm --- HowtoGitlab/9.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/HowtoGitlab/9.md b/HowtoGitlab/9.md index 99d05161..5b39e2ed 100644 --- a/HowtoGitlab/9.md +++ b/HowtoGitlab/9.md @@ -48,7 +48,7 @@ On peut ainsi installer toutes les dépendances pour Gitlab : ~~~ # apt install build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev \ libffi-dev curl openssh-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate \ -python-docutils pkg-config cmake nodejs bundler ruby2.3 git golang nodejs yarn +python-docutils pkg-config cmake nodejs bundler ruby2.3 ruby-dev git golang nodejs yarn ~~~ ## Compte UNIX @@ -201,7 +201,7 @@ Mettre une clé secrète pour le chiffrement en base. ~~~ $ cp config/secrets.yml.example config/secrets.yml -$ sed -i "s@^# db_key_base:@db_key_base: YOURSECRETKEY@" config/secrets.yml +$ sed -i "s@# db_key_base:@db_key_base: YOURSECRETKEY@" config/secrets.yml $ chmod 600 config/secrets.yml ~~~ @@ -295,11 +295,7 @@ $ chmod g+s ~/repositories/ Installation : ~~~ -$ cd -$ git clone https://gitlab.com/gitlab-org/gitlab-workhorse.git -$ cd gitlab-workhorse -$ git checkout v$(cat ~/gitlab/GITLAB_WORKHORSE_VERSION) -$ make +$ bundle exec rake "gitlab:workhorse:install[/home/foo/gitlab-workhorse]" RAILS_ENV=production ~~~ ## Base de données @@ -353,7 +349,7 @@ On utilise Nginx, c'est le seul serveur web supporté officiellement par GitLab -e 's@http://gitlab-workhorse@http://gitlab-foo-workhorse@' \ /etc/nginx/sites-available/foo # ln -s /etc/nginx/sites-available/foo /etc/nginx/sites-enabled/ -# /etc/init.d/nginx restart +# systemctl restart nginx ~~~ > **Note** : La partie SSL/TLS n'est pas évoquée. À vous de faire le nécessaire avec un certificat Let's Encrypt par exemple. N'oubliez donc pas de modifier les directives `ssl_` dans le vhost. @@ -373,7 +369,7 @@ $ bundle exec rake gitlab:env:info RAILS_ENV=production Compilation des assets : ~~~ -$ npm install --production +$ yarn install --production --pure-lockfile $ bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production ~~~