Commit b8ad46fed1af4523f9eaa4075d41af7571fe5d41
Use git-ssb-web directly
Charles Lehner committed on 2/28/2016, 4:17:30 AMParent: 695c3f586ebab7f4567faf8f93c1c8f88dd93540
Files changed
bin.js | changed |
bin.js | ||
---|---|---|
@@ -21,9 +21,9 @@ | ||
21 | 21 … | createRepo(args[1] || 'ssb') |
22 | 22 … | break |
23 | 23 … | |
24 | 24 … | case 'web': |
25 | - startServer(args[1]) | |
25 … | + require('git-ssb-web/server') | |
26 | 26 … | break |
27 | 27 … | |
28 | 28 … | case undefined: |
29 | 29 … | case '-h': |
@@ -61,14 +61,4 @@ | ||
61 | 61 … | spawn('git', ['remote', 'add', remoteName, url], {stdio: 'inherit'}) |
62 | 62 … | }) |
63 | 63 … | }) |
64 | 64 … | } |
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