From 4f7c32297eb0e53dcd313ae89b401d8180cbc4c4 Mon Sep 17 00:00:00 2001 From: Xeronith Date: Mon, 8 Aug 2022 17:47:03 +0430 Subject: [PATCH] chore: :alembic: add systemd service template --- greataped/greatape.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 greataped/greatape.service diff --git a/greataped/greatape.service b/greataped/greatape.service new file mode 100644 index 0000000..33244b3 --- /dev/null +++ b/greataped/greatape.service @@ -0,0 +1,17 @@ +[Unit] +Description=GreatApe +ConditionPathExists=/path/to/app +After=network.target + +[Service] +Type=simple +User=greatape +Group=greatape +WorkingDirectory=/path/to/app +ExecStart=/usr/local/go/bin/go run . +Environment="PORT=8080" +Environment="PROTOCOL=https" +Environment="DOMAIN=example.social" + +[Install] +WantedBy=multi-user.target \ No newline at end of file