Nouveaux pré-requis

This commit is contained in:
Benoît S. 2017-08-07 23:11:39 +02:00
parent bef2fbca52
commit 9dab7260e5

View file

@ -19,7 +19,7 @@ On peut installer les dépendances pour Mastodon :
~~~ ~~~
# apt install nodejs yarn imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git curl \ # apt install nodejs yarn imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git curl \
g++ libprotobuf-dev protobuf-compiler pkg-config build-essential libreadline-dev g++ libprotobuf-dev protobuf-compiler pkg-config build-essential libreadline-dev libicu-dev libidn11-dev
~~~ ~~~
> **Note** : Vous devez avoir les backports `jessie-backports` pour installer _ffmpeg_. > **Note** : Vous devez avoir les backports `jessie-backports` pour installer _ffmpeg_.
@ -51,6 +51,8 @@ $ cd
$ TMPDIR=~/tmp MAKE_OPTS=-j$(nproc) rbenv install 2.4.1 $ TMPDIR=~/tmp MAKE_OPTS=-j$(nproc) rbenv install 2.4.1
~~~ ~~~
> **Note** : On met la variable d'environnement `RAILS_ENV` dans notre profile bash pour éviter de l'indiquer à chaque commande Ruby/Rails.
### NodeJS et Yarn ### NodeJS et Yarn
Mastodon nécessite une version très récentes de [NodeJS](HowtoNodeJS) et [Yarn](HowtoYarn) : Mastodon nécessite une version très récentes de [NodeJS](HowtoNodeJS) et [Yarn](HowtoYarn) :
@ -107,6 +109,7 @@ $ bundle install --deployment --without development test
$ yarn install --pure-lockfile $ yarn install --pure-lockfile
$ cp .env.production.sample .env.production $ cp .env.production.sample .env.production
$ bundle exec rake secret $ bundle exec rake secret
$ bundle exec rake mastodon:webpush:generate_vapid_key >> .env.production
~~~ ~~~
> Attention, si vous avez un `/home` en `noexec`, il faudra le passer en `exec` pour les processus Ruby et NPM. Au risque d'obtenir ce genre d'erreurs : > Attention, si vous avez un `/home` en `noexec`, il faudra le passer en `exec` pour les processus Ruby et NPM. Au risque d'obtenir ce genre d'erreurs :