From f21b1202b91a11eedc0f4349db4c110bad6fcb31 Mon Sep 17 00:00:00 2001 From: Daan Wynen Date: Wed, 14 Oct 2020 22:34:11 +0200 Subject: [PATCH] Document my confusion with upgrading. This may not be the most elegant way of going about it, but it worked for me. In any case, *some* sort of upgrade guide should be present IMO. --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index d8a5f17..8a44941 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,22 @@ HTTP server for read-only views of SSB content. Serves content as web pages or a ## Install & Run +Before you install or upgrade ssb-viewer, make sure the plugin is disabled. +Otherwise sbot will crash while you install, because it tries to execute half-compiled JS. +If you're running the install inside the same docker container as sbot, this will kill your build +and leave you in a broken state where sbot doesn't start anymore. + As a sbot plugin: ```sh mkdir -p ~/.ssb/node_modules cd ~/.ssb/node_modules + +# for a new installation: git clone ssb://%MeCTQrz9uszf9EZoTnKCeFeIedhnKWuB3JHW2l1g9NA=.sha256 ssb-viewer && cd ssb-viewer + +# for an upgrade: +cd ssb-viewer && git pull + npm install sbot plugins.enable ssb-viewer # restart sbot