Host web app with node
This commit is contained in:
parent
e830d008d3
commit
62f472bdb3
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
var express = require('express');
|
var express = require('express');
|
||||||
|
var path = require('path');
|
||||||
var search = require('./search.js');
|
var search = require('./search.js');
|
||||||
|
|
||||||
|
|
||||||
@ -40,6 +41,7 @@ function main() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.use(express.static(path.join(__dirname, '../client')));
|
||||||
app.listen(3000);
|
app.listen(3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user