Components
Ruby
Mastodon requires an installation of Ruby for the webserver and Sidekiq components, and administrators must ensure a supported Ruby version is present and configured.
Versions of Mastodon are listed across the top of the matrix. Versions of each required component are listed along the left side.
| 4.6 | 4.5 | 4.4 | 4.3 | 4.2 | |
|---|---|---|---|---|---|
| 4.0 | |||||
| 3.4 | |||||
| 3.3 | |||||
| 3.2 | |||||
| 3.1 | |||||
| 3.0 | |||||
| 2.7 |
| Key | |
|---|---|
| Supported in this version | |
| End of life, use with caution | |
| Not supported in this version |
References: Ruby Branches
Terminal
# Check running version
ruby -v
Mastodon has file called
.ruby-version in the source code that is the expected target version for that release.
You should use rbenv to install and manage the target Ruby version.The official Mastodon container image will always use the correct target version of Ruby for that release.
Support Lifecycle
We track dependencies for the five most recent Mastodon branches to help administrators determine upgrade path and deployment options. Administrators should strive to run supported releases on supported platforms to give their users the best, and most secure, experience possible.
Node
Mastodon requires an installation of Node for asset compilation, and administrators must ensure a supported Node version is present and configured for operation of the streaming API.