User Tools

Site Tools


myhelp:mastodon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
myhelp:mastodon [2026/01/19 09:45] – [Install Mastodon v4.5.4 on Rocky Linux 10] ulrichmyhelp:mastodon [2026/01/19 09:57] (current) – [Install Mastodon v4.5.4 on Rocky Linux 10] ulrich
Line 11: Line 11:
 </code> </code>
  
-Install additional RPMS:+Install additional RPMS as root:
 nodejs, valkey (instead of redis),  nodejs, valkey (instead of redis), 
 <code> <code>
Line 17: Line 17:
 </code> </code>
  
-Add user mastodon+Add user mastodon as root
 <code> <code>
 mkdir /opt/mastodon mkdir /opt/mastodon
Line 30: Line 30:
 </code> </code>
  
-Install ruby+Install ruby as user mastodon
 <code> <code>
 git clone https://github.com/rbenv/rbenv.git ~/.rbenv git clone https://github.com/rbenv/rbenv.git ~/.rbenv
Line 39: Line 39:
 </code> </code>
  
-Checkout mastodon code+Checkout mastodon code as user mastodon
 <code> <code>
 git clone https://github.com/mastodon/mastodon.git live && cd live git clone https://github.com/mastodon/mastodon.git live && cd live
Line 45: Line 45:
 </code> </code>
  
-Install Ruby+Install Ruby as user mastodon
 <code> <code>
 RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install
 </code> </code>
  
 +Install Ruby dependencies as user mastodon
 +<code>
 +bundle config deployment 'true'
 +bundle config without 'development test'
 +bundle install
 +</code>
  
 +Fix some nodejs stuff as root
 +<code>
 +npm install -g yarn
 +rm -f /usr/local/bin/yarn #  when a old yarn version is installed
 +rm -f /usr/local/bin/yarnpkg #  when a old yarn version is installed
 +npm install -g corepack
 +</code>
 +
 +Install nodejs dependencies as user mastodon
 +<code>
 +corepack enable
 +corepack prepare yarn@4.12.0 --activate
 +yarn install
 +</code>
 ====== Install Mastodon on Rocky Linux 9 ====== ====== Install Mastodon on Rocky Linux 9 ======
 ===== Pre-requisites ===== ===== Pre-requisites =====
myhelp/mastodon.txt · Last modified: by ulrich