git ssb

2+

dinoworm ๐Ÿ› / ssb-graphviz



Tree: ca718f616a051e93adeb22faa3fc06646f667973

Files: ca718f616a051e93adeb22faa3fc06646f667973 / server.js

649 bytesRaw
1#!/bin/sh
2':' //; exec "$(command -v node || command -v nodejs)" "$0" "$@"
3// http://unix.stackexchange.com/questions/65235/universal-node-js-shebang
4// vi: ft=javascript
5
6const appName = process.env.appName
7const config = require('ssb-config/inject')(appName)
8const ssbClient = require('ssb-client')
9const keys = require('ssb-keys')
10 .loadOrCreateSync(require('path').join(config.path, 'secret'))
11const Viz = require('.')
12
13config.listenAddr = config._[1]
14config.appName = appName
15
16require('ssb-reconnect')(function (cb) {
17 ssbClient(keys, config, cb)
18}, function (err, ssb, reconnect) {
19 if (err) throw err
20 Viz.init(ssb, config, reconnect)
21})
22

Built with git-ssb-web