From 5a5944ceb7a09b368c978cbf44687a0f5f2dc5ed Mon Sep 17 00:00:00 2001 From: Guy Van Sanden Date: Tue, 7 Mar 2023 14:47:41 +0100 Subject: [PATCH] Add systemd --- package.json | 14 ++++++++++++++ pleroma2nip05.service | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 package.json create mode 100644 pleroma2nip05.service diff --git a/package.json b/package.json new file mode 100644 index 0000000..599df6c --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "Pleroma2nip05", + "version": "1.0.0", + "description": "Pleroma2nip05", + "scripts": { + "dev": "webpack-dev-server --inline --hot" + }, + "author": "Guy Van Sanden ", + "license": "AGPL", + "dependencies": { + "grunt": "~0.4.5", + "grunt-version": "~1.1.0" + } +} diff --git a/pleroma2nip05.service b/pleroma2nip05.service new file mode 100644 index 0000000..4c73413 --- /dev/null +++ b/pleroma2nip05.service @@ -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