Skip to content

Commit fd31561

Browse files
committed
Renamed CINDY_LAST_RUN_FILE to CINDY_DATA, which now is a folder instead of a single file
1 parent c7e6751 commit fd31561

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Administrate
77

8-
* `docker logs cindy` - Contains (at least) one entry for each processed event.
8+
* `docker logs cindy` - Contains (at least) one entry per synchronization run.
99

1010

1111
## Deploy
@@ -14,7 +14,7 @@
1414
- `CINDY_IP_PORT`: Cindy will listen to this IP port. The default is `8080`.
1515
- `CINDY_MASTODON_HOST`: Cindy will publish events on this Mastodon host. There is no default.
1616
- `CINDY_MASTODON_ACCESS_TOKEN`: Cindy uses this access token to log in to the Mastodon host. There is no default.
17-
- `CINDY_LAST_RUN_FILE`: Cindy rembembers the instant when it last pulled calenders, so it understands which calender events are new/modified, and which are old. The default is `lastRun`
17+
- `CINDY_DATA`: File system folder where Cindy persists internal data. For example, Cindy rembembers the instant when it last pulled calenders, so it understands which calender events are new/modified, and which are old. The default is `.`
1818
- `CINDY_POLLING_SECONDS`: Time between two calendar polls. The default frequency is one minute, i. e. `60`.
1919
- `CINDY_CALENDAR_SOURCES`: Comma-separated list of download URLs of calendars to poll. There is no default.
2020

src/main/java/CindyBootstrap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public final class CindyBootstrap {
7272
public static void main(final String[] args) throws InterruptedException, ExecutionException {
7373
final var mastodonHost = System.getenv("CINDY_MASTODON_HOST");
7474
final var mastodonAccessToken = System.getenv("CINDY_MASTODON_ACCESS_TOKEN");
75-
final var lastRunFile = Path.of(System.getenv().getOrDefault("CINDY_LAST_RUN_FILE", "lastRun"));
75+
final var lastRunFile = Path.of(System.getenv().getOrDefault("CINDY_DATA", "."), "lastRun");
7676
final var ipPort = Integer.parseInt(System.getenv().getOrDefault("CINDY_IP_PORT", "8080"));
7777
final var pollingInterval = 1_000 * Integer.parseInt(System.getenv().getOrDefault("CINDY_POLLING_SECONDS", "60"));
7878
final var sources = List.of(System.getenv().getOrDefault("CINDY_CALENDAR_SOURCES", "").split(",")).stream().map(String::trim).map(URI::create).toList();

0 commit comments

Comments
 (0)