22
0
Fork 0
This commit is contained in:
Benoît S. 2019-04-16 20:09:07 +02:00
parent 3a405a4903
commit a42baa5cb3
1 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ title: Howto Mastodon
## Installation
Nous installons la version **2.7.1** sous **Debian 9 (Stretch)**.
Nous installons la version **2.8.0** sous **Debian 9 (Stretch)**.
Mastodon s'appuie sur Ruby, [NodeJS](HowtoNodeJS), [Yarn](HowtoYarn), [Nginx](HowtoNginx), [Redis](HowtoRedis) et [PostgreSQL](HowtoPostgreSQL).
@ -35,7 +35,7 @@ Créer un compte UNIX *mastodon* :
### Ruby
Mastodon nécessite une version très récente de Ruby (2.6.0), on le met en place via [rbenv](HowtoRails#cas-2-utilisation-avec-rbenv-unicorn) :
Mastodon nécessite une version très récente de Ruby (2.6.1), on le met en place via [rbenv](HowtoRails#cas-2-utilisation-avec-rbenv-unicorn) :
~~~
# sudo -iu mastodon
@ -47,8 +47,8 @@ $ echo 'export RAILS_ENV="production"' >> ~/.bash_profile
$ source ~/.bash_profile
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
$ cd
$ TMPDIR=~/tmp MAKE_OPTS=-j$(nproc) RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.0
$ rbenv local 2.6.0
$ TMPDIR=~/tmp MAKE_OPTS=-j$(nproc) RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.1
$ rbenv local 2.6.1
~~~
> **Note** : On met la variable d'environnement `RAILS_ENV` dans notre profile bash pour éviter de l'indiquer à chaque commande Ruby/Rails.
@ -88,7 +88,7 @@ On clone le repository et installe avec _bundle_ et _yarn_ :
# sudo -iu mastodon
$ git clone https://github.com/tootsuite/mastodon.git
$ cd mastodon
$ git checkout v2.7.1
$ git checkout v2.8.0
$ gem install bundler
$ bundle install --deployment --without development test
$ yarn install --pure-lockfile