安装
**在Ubuntu上安装Mastodon **
Mastodon开源社交媒体平台基于ActivityPub,很容易开始。在本地开发环境中使用Mastodon操作的最佳方法是在您的本地环境中安装所有系统依赖项,而不是使用Docker或Vagrant工具。安装针对Ruby,Node.js,PostgreSQL和Redis等的Rails应用程序的标准依赖项。您可以通过在终端运行命令下载Mastodon微博的最新稳定版本:
git clone https://github.com/tootsuite/mastodon.git mastodon
cd mastodon
git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
接下来,通过在项目目录中运行Bundler:
bundle install
现在,更新数据库。
bundle exec rake mastodon:setup
对于Mastodon的完整功能,需要运行多个过程。您可以安装和启动工头以运行所有过程:
gem install foreman --no-document
foreman start
在Mastodon目录中,这将启动在copfile.dev,Rails Server,WebPack Server,Streaming API Server和Sidekiq Schedular中定义的进程。就是这样。 恭喜!您已经在Ubuntu系统上成功安装了Mastodon最受欢迎的微博网站。享受!