diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-03-07 20:36:54 -0500 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-03-08 12:09:00 -0500 |
commit | d92635223a233a1bc8d15e6b1d83e50fa74e5e32 (patch) | |
tree | 8d569498198469ecba85f0de440cbbc6f19bea8f /server.js | |
parent | 606ff997bc4249d4ef0baae2e6336a739c3d64c7 (diff) | |
download | patchfoo-d92635223a233a1bc8d15e6b1d83e50fa74e5e32.tar.gz patchfoo-d92635223a233a1bc8d15e6b1d83e50fa74e5e32.zip |
Pass config as opts
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,6 @@ -require('ssb-client')(function (err, sbot, config) { +var createConfig = require('ssb-config/inject') +var config = createConfig(process.env.ssb_appname) +require('ssb-client')(config, function (err, sbot) { if (err) throw err require('.').init(sbot, config) }) |