added service for the mastodon API

This commit is contained in:
Enju Aihara 2022-03-04 18:45:23 +01:00
parent 19abc18f90
commit bde8234a90
2 changed files with 14 additions and 1 deletions

View file

@ -15,10 +15,13 @@ Copy the preloaded database to the live database
Start the mastodon API
Make sure to edit the `User` and `WorkingDirectory` of the service file accordingly.
```
sudo cp services/mastodon_api.service /etc/systemd/system
cd mastodon_api
yarn install
node .
systemctl start mastodon_api
```
Fill the database with blocks.

View file

@ -0,0 +1,10 @@
[Unit]
Description=Mastodon API
[Service]
Type=simple
Restart=always
RestartSec=1
User=
WorkingDirectory=/fedi-block-api/mastodon_api
ExecStart=node .