git ssb

30+

cel / git-ssb-web



Commit 9831ef6077dcd85c5c333ffb3d90d3667ade0ffb

Respect empty ssb_appname env var

Charles Lehner committed on 3/22/2016, 11:48:19 PM
Parent: e79a1c8ddcfc1950835039e14b72f92377eed48a

Files changed

server.jschanged
server.jsView
@@ -2,9 +2,9 @@
22 ':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@"
33 // http://unix.stackexchange.com/questions/65235/universal-node-js-shebang
44 // vi: ft=javascript
55
6-var appName = process.env.ssb_appname ||
6+var appName = 'ssb_appname' in process.env ? process.env.ssb_appname :
77 require('child_process').spawnSync('git', ['config', 'ssb.appname'],
88 {encoding: 'utf8'}).stdout.trim()
99 var config = require('ssb-config/inject')(appName)
1010 var ssbClient = require('ssb-client')

Built with git-ssb-web