git ssb

9+

cel / ssb-viewer



Commit master

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.
Daan Wynen committed on 10/14/2020, 8:34:11 PM
Parent: 38c61a5069cfd7444fd36af69b49b22d92af5f4d

Files changed

README.mdchanged
README.mdView
@@ -3,13 +3,24 @@
33 HTTP server for read-only views of SSB content. Serves content as web pages or as scripts for embedding in other web pages.
44
55 ## Install & Run
66
7 +Before you install or upgrade ssb-viewer, make sure the plugin is disabled.
8 +Otherwise sbot will crash while you install, because it tries to execute half-compiled JS.
9 +If you're running the install inside the same docker container as sbot, this will kill your build
10 +and leave you in a broken state where sbot doesn't start anymore.
11 +
712 As a sbot plugin:
813 ```sh
914 mkdir -p ~/.ssb/node_modules
1015 cd ~/.ssb/node_modules
16 +
17 +# for a new installation:
1118 git clone ssb://%MeCTQrz9uszf9EZoTnKCeFeIedhnKWuB3JHW2l1g9NA=.sha256 ssb-viewer && cd ssb-viewer
19 +
20 +# for an upgrade:
21 +cd ssb-viewer && git pull
22 +
1223 npm install
1324 sbot plugins.enable ssb-viewer
1425 # restart sbot
1526 ```

Built with git-ssb-web