From 2096790f3904371c9ff6090f1ff846593c7df9c4 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Mon, 14 Feb 2022 12:45:55 +0100 Subject: :children_crossing: Catch and deal with database connection error(s) --- Readme.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Readme.md') diff --git a/Readme.md b/Readme.md index b7a7561..4740f5f 100644 --- a/Readme.md +++ b/Readme.md @@ -6,7 +6,8 @@ and pushes those to Gotify. This can be run using docker or locally, to run with docker you can ``` $ run -it --rm -e DB_HOST= -e DB_USER= \ - -e DB_PASS= -e DB_BASE= jakobst1n/rss-watcher + -e DB_PASS= -e DB_BASE= \ + --restart=unless-stopped jakobst1n/rss-watcher ``` To run locally you need to set all those environment variables, and then you can run it with @@ -32,5 +33,3 @@ will poll for new changes (in ms). ## Todo - Extract more RSS fields. - Deal with multiple links. -- Add error handling for database connection, currently the process exits (which is why you might want to use `--restart=unless-stopped` -- Add proper error handling for gotify failures -- cgit v1.2.3