Add systemd

This commit is contained in:
Guy Van Sanden 2023-03-07 14:47:41 +01:00
parent 4160deddc8
commit 5a5944ceb7
2 changed files with 27 additions and 0 deletions

14
package.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "Pleroma2nip05",
"version": "1.0.0",
"description": "Pleroma2nip05",
"scripts": {
"dev": "webpack-dev-server --inline --hot"
},
"author": "Guy Van Sanden <guy@taurix.net>",
"license": "AGPL",
"dependencies": {
"grunt": "~0.4.5",
"grunt-version": "~1.1.0"
}
}

13
pleroma2nip05.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Pleroma2nip05
After=network.target
[Service]
User=cgsserver
WorkingDirectory=/opt/pleroma2nip05
Environment=FLASK_CONFIG=production
ExecStart=/opt/pleroma2nip05/venv/bin/gunicorn -b localhost:5000 --preload --workers=1 --threads=5 -t 60
[Install]
WantedBy=multi-user.target