take configuration in env vars temporarily

This commit is contained in:
Dustin J. Mitchell 2020-11-28 10:02:17 -05:00
parent 97a8a87c24
commit 1a92613ddc
3 changed files with 25 additions and 6 deletions

View file

@ -1,6 +1,20 @@
# Usage
## `task`
The main interface to your tasks is the `task` command, which supports various subcommands.
You can find a quick list of all subcommands with `task help`.
Note that the `task` interface does not match that of TaskWarrior.
### Configuration
Temporarily, configuration is by environment variables.
The directory containing the replica's task data is given by `TASK_DB`, defaulting to `/tmp/tasks`.
the origin of the sync server is given by `SYNC_SERVER_ORIGIN`, defaulting to `http://localhost:8080`.
## `taskchampion-sync-server`
Run `taskchampion-sync-server` to start the sync server.
It serves on port 8080 on all interfaces, using an in-memory database (meaning that all data is lost when the process exits).
Requests for previously-unknown clients are automatically added.