Commit f21b1202b91a11eedc0f4349db4c110bad6fcb31
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.md | changed |
README.md | ||
---|---|---|
@@ -3,13 +3,24 @@ | ||
3 | 3 … | HTTP server for read-only views of SSB content. Serves content as web pages or as scripts for embedding in other web pages. |
4 | 4 … | |
5 | 5 … | ## Install & Run |
6 | 6 … | |
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 … | + | |
7 | 12 … | As a sbot plugin: |
8 | 13 … | ```sh |
9 | 14 … | mkdir -p ~/.ssb/node_modules |
10 | 15 … | cd ~/.ssb/node_modules |
16 … | + | |
17 … | +# for a new installation: | |
11 | 18 … | git clone ssb://%MeCTQrz9uszf9EZoTnKCeFeIedhnKWuB3JHW2l1g9NA=.sha256 ssb-viewer && cd ssb-viewer |
19 … | + | |
20 … | +# for an upgrade: | |
21 … | +cd ssb-viewer && git pull | |
22 … | + | |
12 | 23 … | npm install |
13 | 24 … | sbot plugins.enable ssb-viewer |
14 | 25 … | # restart sbot |
15 | 26 … | ``` |
Built with git-ssb-web