💾 Archived View for paritybit.ca › sysadmin › misskey.gmi captured on 2022-07-16 at 13:42:05. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-03-01)

-=-=-=-=-=-=-

Installing Misskey on Debian 11

Install NodeJS v16.x using the repo from Node's website. Then install:

nodejs redis postgresql yarn ffmpeg gulp git

Add a new user to postgres:

su - postgres
createuser misskey -P;
createdb misskey;
psql
GRANT ALL PRIVILEGES ON DATABASE misskey TO misskey;

Make sure the following environment is set

NODE_ENV=production NODE_PATH=/usr/lib/nodejs:/usr/share/nodejs

You probably have to

yarn add querystring js-yaml

Run the following to build and install misskey

su - misskey
git clone --recursive -b master git://github.com/misskey-dev/misskey.git
cd misskey
git submodule update --init
git checkout master
yarn install
cp .config/example.yml .config/default.yml
<EDIT THE CONFIG FILE YOU JUST COPIED>
yarn build
yarn run init

Test that it works by running

yarn start

Create and install the following systemd service file into `/etc/systemd/system/misskey.service`:

[Unit]
Description=Misskey daemon

[Service]
Type=simple
User=misskey
ExecStart=/usr/bin/npm start
WorkingDirectory=/home/misskey/misskey
Environment="NODE_ENV=production"
TimeoutSec=60
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=misskey
Restart=always

[Install]
WantedBy=multi-user.target

To start Misskey from the service file, do:

systemctl daemon-reload
systemctl enable misskey
systemctl start misskey