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: