diverses modifs, tel que yarn au lieu de npm
This commit is contained in:
parent
f100e82633
commit
84dff9c12c
|
@ -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
|
||||
~~~
|
||||
|
||||
|
|
Loading…
Reference in a new issue