Home  >  All Categories  >  Dev  >  Mastdon Development Setup

Mastdon Development Setup

Also see dev/setup admin/install

  1. Install Ruby

Installing Ruby 2. Install Node

See nvm

  1. Install postgres

Postgres Setup for Debian

  1. Install redit
brew install redis
brew services start redis
  1. Clone
git clone git@github.com:mastodon/mastodon.git live
  1. Install ruby dependences
cd live
bundle config set --local with 'development'
bundle install
  1. Install yarn
npm install --global yarn
  1. Install nodejs dependences
yarn
  1. Init database
RAILS_ENV=development bundle exec rails db:setup
  1. Install foreman for multiple run
gem install foreman --no-document
  1. Open

http://localhost:3000

email: admin@localhost:3000 password: mastodonadmin

Category: Dev 
TagsSelf-hosted
Published:   📝 Edit this page

该博客没有评论系统,我正在实验有意义的讨论是否更易在社群中发生,不知道为什么,人在社群中,似乎会有更好的行为规范。然后如果有高质量的讨论,我会手动再精选到原文。为此,我建立了一个 Telegram 讨论群组,你可以在里面讨论这篇文章,点此复制文章标题和链接