Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).

docs: reorder appview setup to start Redis before watch-appview

The appview crashes on startup if Redis is not running:

appview: failed to start appview err="failed to start oauth handler:
failed to connect to redis: dial tcp [::1]:6379: connect: connection refused"

Reorder the "Running the appview" section so the Redis and
OAuth JWKs prerequisites come before the watch-appview command,
matching the actual dependency order.

Signed-off-by: Alessio Caiazza <code.git@caiazza.info>

authored by nolith.dev and committed by tangled.org 4eaf8ae7 2bc4bf59

+17 -17
+17 -17
docs/DOCS.md
··· 1470 1470 1471 1471 ## Running the appview 1472 1472 1473 - The Nix flake also exposes a few `app` attributes (run `nix 1474 - flake show` to see a full list of what the flake provides), 1475 - one of the apps runs the appview with the `air` 1476 - live-reloader: 1473 + The appview requires Redis and OAuth JWKs. Start these 1474 + first, before launching the appview itself. 1477 1475 1478 1476 ```bash 1479 - TANGLED_DEV=true nix run .#watch-appview 1480 - 1481 - # TANGLED_DB_PATH might be of interest to point to 1482 - # different sqlite DBs 1483 - 1484 - # in a separate shell, you can live-reload tailwind 1485 - nix run .#watch-tailwind 1486 - ``` 1487 - 1488 - To authenticate with the appview, you will need Redis and 1489 - OAuth JWKs to be set up: 1490 - 1491 - ``` 1492 1477 # OAuth JWKs should already be set up by the Nix devshell: 1493 1478 echo $TANGLED_OAUTH_CLIENT_SECRET 1494 1479 z42ty4RT1ovnTopY8B8ekz9NuziF2CuMkZ7rbRFpAR9jBqMc ··· 1494 1509 1495 1510 # Run Redis in a new shell to store OAuth sessions 1496 1511 redis-server 1512 + ``` 1513 + 1514 + The Nix flake exposes a few `app` attributes (run `nix 1515 + flake show` to see a full list of what the flake provides), 1516 + one of the apps runs the appview with the `air` 1517 + live-reloader: 1518 + 1519 + ```bash 1520 + TANGLED_DEV=true nix run .#watch-appview 1521 + 1522 + # TANGLED_DB_PATH might be of interest to point to 1523 + # different sqlite DBs 1524 + 1525 + # in a separate shell, you can live-reload tailwind 1526 + nix run .#watch-tailwind 1497 1527 ``` 1498 1528 1499 1529 ## Running knots and spindles