From e564898be6141ed65b145e2ffe72821b10bb3894 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 9 May 2023 23:02:17 +0200 Subject: [PATCH] more fixing for unit --- .gitignore | 1 + src/cse-webhook-watcher.service | 2 +- src/main.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b4d8b92..a1472d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .venv src/.env +.env diff --git a/src/cse-webhook-watcher.service b/src/cse-webhook-watcher.service index a544da1..129a0a4 100644 --- a/src/cse-webhook-watcher.service +++ b/src/cse-webhook-watcher.service @@ -7,7 +7,7 @@ Type=simple User=cse-webhook Group=cse-webhook WorkingDirectory=/srv/cse-webhook-watcher -ExecStart=/srv/cse-webhook-watcher/.venv/bin/python3 /srv/cse-webhook-watcher/src/main.py +ExecStart=/srv/cse-webhook-watcher/.venv/bin/python3 -u /srv/cse-webhook-watcher/src/main.py StandardOutput=syslog StandardError=syslog diff --git a/src/main.py b/src/main.py index a4905ec..00b21fc 100755 --- a/src/main.py +++ b/src/main.py @@ -8,7 +8,7 @@ import re from bs4 import BeautifulSoup import dotenv -CONFIG = dotenv.dotenv_values(".env") +CONFIG = dotenv.dotenv_values("/srv/cse-webhook-watcher/.env") def read_known() -> list: