File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
var build = require ( './build' ) . build ,
3
3
qs = require ( 'querystring' ) ,
4
4
port = 9900 ,
5
- repoURL = "https://github.com/cramerdev/JavaScript-Garden" ;
5
+ repoURL = "https://github.com/cramerdev/JavaScript-Garden" ,
6
+ options = { dir : 'doc' , pathPrefix : '' , template : 'garden.jade' , out : 'site' } ;
7
+
8
+ // FIXME: this is done twice, once when the module loads, and once here
9
+ // (with the correct options)
10
+ build ( options ) ;
6
11
7
12
require ( 'http' ) . createServer ( function ( request , response ) {
8
13
var payload = '' ;
@@ -16,7 +21,7 @@ require('http').createServer(function (request, response) {
16
21
console . log ( payload ) ;
17
22
payload = JSON . parse ( qs . parse ( payload ) . payload ) ;
18
23
if ( payload . repository . url === repoURL ) {
19
- build ( ) ;
24
+ build ( options ) ;
20
25
} else {
21
26
response . writeHead ( 400 ) ; // Bad Request
22
27
}
You can’t perform that action at this time.
0 commit comments