From 6158439525221311dcd24967171ec0b87f49af57 Mon Sep 17 00:00:00 2001 From: Wilhelm Westermark Date: Sun, 11 Nov 2018 17:45:18 +0100 Subject: [PATCH] More deploy stuff --- deploy/deploy.sh | 7 +++++++ deploy/git-auto-deploy.service | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 deploy/deploy.sh create mode 100644 deploy/git-auto-deploy.service diff --git a/deploy/deploy.sh b/deploy/deploy.sh new file mode 100644 index 0000000..cd64364 --- /dev/null +++ b/deploy/deploy.sh @@ -0,0 +1,7 @@ +#!/bin/bash +sudo cp restart_partsearch.sh /usr/local/sbin/ +cd Git-Auto-Deploy +sudo python setup.py install +sudo cp /ELAB-partsearch/deploy/git-auto-deploy.service /etc/systemd/system +sudo systemctl enable git-auto-deploy.service +sudo systemctl start git-auto-deploy.service diff --git a/deploy/git-auto-deploy.service b/deploy/git-auto-deploy.service new file mode 100644 index 0000000..938e96e --- /dev/null +++ b/deploy/git-auto-deploy.service @@ -0,0 +1,11 @@ +[Unit] +Description=GitAutoDeploy + +[Service] +User=www-data +Group=www-data +WorkingDirectory=/srv/ELAB-partsearch/deploy/Git-Auto-Deploy/ +ExecStart=/usr/bin/python -m /srv/ELAB-partsearch/deploy/Git-Auto-Deploy/gitautodeploy --daemon-mode --config /srv/ELAB-partsearch/deploy/GitAutoDeploy.config.json + +[Install] +WantedBy=multi-user.target