XcodeやらPostgreSQLやらredisやらはインストール済みの前提。あとRubyも2.4.xが入っている前提。
要はテストを通すところまでやる。
## もろもろインストール
$ brew install ffmpeg imagemagick
## Mastodonのソース入手
$ git clone https://github.com/tootsuite/mastodon.git
## RailsというかRuby側のインストール
$ cd mastodon
$ bundle install
## Node側のインストール
$ yarn install
## DBの初期化
$ bundle exec rails db:setup
## テストを実行してエラーが出ないことを確認
$ bundle exec rails spec
実行
localでテストするところも実行してみる。
$ gem install foreman
$ foreman start -f Procfile.dev
foremanをgem installするのは微妙な気がする……PR送るべきか。