From 93951015a0c2a1951ad72999faa1bb624f01cdc1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 9 Oct 2020 09:44:56 +0000 Subject: [PATCH] how to run as system service --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 150de88..1220940 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,15 @@ Supported tags are: - nogithub - nobitbucket +## Run as a System Service + +```bash +sudo env PATH="$PATH" \ + serviceman add --name gitdeploy --system \ + --username app -path "$PATH" -- \ + gitdeploy run --exec ./scripts/ +``` + ## Add Webhooks To add a webhook you'll first need a secret