diff --git a/HowtoMastodon.md b/HowtoMastodon.md index 665a8708..a6002b5b 100644 --- a/HowtoMastodon.md +++ b/HowtoMastodon.md @@ -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 \ -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_. @@ -51,6 +51,8 @@ $ cd $ 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 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 $ cp .env.production.sample .env.production $ 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 :