Files: a1cc908405943c59caa0f25427931456791123b8 / background-process.js
992 bytesRaw
1 | var fs = require('fs') |
2 | var Path = require('path') |
3 | var electron = require('electron') |
4 | |
5 | console.log('STARTING SBOT') |
6 | |
7 | var createSbot = require('scuttlebot') |
8 | .use(require('scuttlebot/plugins/master')) |
9 | .use(require('scuttlebot/plugins/gossip')) |
10 | .use(require('scuttlebot/plugins/replicate')) |
11 | .use(require('ssb-friends')) |
12 | .use(require('ssb-blobs')) |
13 | .use(require('ssb-backlinks')) |
14 | .use(require('ssb-private')) |
15 | .use(require('scuttlebot/plugins/invite')) |
16 | .use(require('scuttlebot/plugins/local')) |
17 | .use(require('scuttlebot/plugins/logging')) |
18 | .use(require('ssb-query')) |
19 | .use(require('ssb-about')) |
20 | .use(require('ssb-fulltext')) |
21 | // .use(require('ssb-ebt')) |
22 | .use(require('ssb-ws')) |
23 | |
24 | // pull config options out of depject |
25 | var config = require('./config').create().config.sync.load() |
26 | |
27 | var sbot = createSbot(config) |
28 | var manifest = sbot.getManifest() |
29 | fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest)) |
30 | electron.ipcRenderer.send('server-started') |
31 | |
32 |
Built with git-ssb-web