notabugio-archived/notabug-ui

Possible issues starting dev docker?

Closed this issue · 4 comments

Phenomenal work here.

I'm a bit wondering how to start local dev?

I ran start.sh with a local redis running on my parent OS. I get "empty reply from server" from port 3001 while the start.sh has started in foreground.

I just see the following (snippert below), what should I change the peer configs for to get a local development instance? Trying to familiarize with the architecture and possibly contribute.

It seems to start.

44.8 MB rss. 18.2 MB hT. 12.4 MB hU. 1 peers. 0 nodes.
44.8 MB rss. 18.2 MB hT. 12.4 MB hU. 1 peers. 0 nodes.
44.8 MB rss. 18.2 MB hT. 12.4 MB hU. 1 peers. 0 nodes.
44.8 MB rss. 18.2 MB hT. 12.4 MB hU. 1 peers. 0 nodes.
44.8 MB rss. 18.2 MB hT. 12.4 MB hU. 1 peers. 0 nodes.
44.8 MB rss. 18.2 MB hT. 12.4 MB hU. 1 peers. 0 nodes.
44.8 MB rss. 18.2 MB hT. 12.4 MB hU. 1 peers. 0 nodes.
44.8 MB rss. 18.2 MB hT. 12.4 MB hU. 1 peers. 0 nodes.

This worked

git clone https://github.com/notabugio/notabug.git
cd notabug && yarn && yarn build
cp -R build htdocs
node server.js --persist --debug --evict --peer https://notabug.io/gun --port 3001

The web interface shows Cannot GET / at this point though.


261.9 MB rss. 216.8 MB hT. 137.6 MB hU. 1 peers. 14 nodes. 25243 msgs.
|GC| 12/11/2018, 12:49:55 AM | Current Memory Ratio: 0.64 | Current Ram Usage 262.09MB | Nodes in Memory 15
262.1 MB rss. 217.3 MB hT. 139.3 MB hU. 1 peers. 15 nodes. 25245 msgs.
262.1 MB rss. 217.3 MB hT. 140.1 MB hU. 1 peers. 16 nodes. 25246 msgs.
|GC| Removed 3 nodes in 0 seconds-----------------------------------------------------------------
|GC| 12/11/2018, 12:50:00 AM | Current Memory Ratio: 0.64 | Current Ram Usage 262.1MB | Nodes in Memory 13
262.1 MB rss. 217.3 MB hT. 140.2 MB hU. 1 peers. 13 nodes. 25246 msgs.
262.1 MB rss. 217.3 MB hT. 140.3 MB hU. 1 peers. 13 nodes. 25246 msgs.

Try:

node server.js --persist --debug --evict --render --peer  https://notabug.io/gun --port 3001

Also should be noted I don't use the docker setup myself and haven't messed with it much.

I use forever to manage processes on notabug.io with this config:

https://github.com/notabugio/notabug/blob/master/peer-configs/notabugio.json

And put nginx in front of that to bring /gun to port 3333 and everything else to 4444

Just the http peer there should be enough (when peered to notabug.io) to get the site running using notabug.io as an indexer.

Closing this since the docker setup is no long present after I did the move to parcel, but I may add some docker configs soon for easier setup as I've been using it more myself on other projects.