LoginSignup
2
1

More than 5 years have passed since last update.

macでMastodonをハックするための準備作業

Last updated at Posted at 2017-04-30

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送るべきか。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1