added service for the mastodon API
This commit is contained in:
parent
19abc18f90
commit
bde8234a90
@ -15,10 +15,13 @@ Copy the preloaded database to the live database
|
|||||||
|
|
||||||
Start the mastodon API
|
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
|
cd mastodon_api
|
||||||
yarn install
|
yarn install
|
||||||
node .
|
systemctl start mastodon_api
|
||||||
```
|
```
|
||||||
|
|
||||||
Fill the database with blocks.
|
Fill the database with blocks.
|
||||||
|
10
services/mastodon_api.service
Normal file
10
services/mastodon_api.service
Normal 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 .
|
Loading…
x
Reference in New Issue
Block a user