Add systemd
This commit is contained in:
parent
4160deddc8
commit
5a5944ceb7
14
package.json
Normal file
14
package.json
Normal 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
13
pleroma2nip05.service
Normal 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
|
Loading…
Reference in New Issue
Block a user