git ssb

39+

cel / git-ssb



Commit b8ad46fed1af4523f9eaa4075d41af7571fe5d41

Use git-ssb-web directly

Charles Lehner committed on 2/28/2016, 4:17:30 AM
Parent: 695c3f586ebab7f4567faf8f93c1c8f88dd93540

Files changed

bin.jschanged
bin.jsView
@@ -21,9 +21,9 @@
2121 createRepo(args[1] || 'ssb')
2222 break
2323
2424 case 'web':
25- startServer(args[1])
25 + require('git-ssb-web/server')
2626 break
2727
2828 case undefined:
2929 case '-h':
@@ -61,14 +61,4 @@
6161 spawn('git', ['remote', 'add', remoteName, url], {stdio: 'inherit'})
6262 })
6363 })
6464 }
65-
66-function startServer(listenAddr) {
67- getSbot(function (err, sbot) {
68- if (err) throw err
69- require('git-ssb-web')(sbot, listenAddr, function (err) {
70- sbot.close()
71- if (err) throw err
72- })
73- })
74-}

Built with git-ssb-web