1

Host web app with node

This commit is contained in:
Alex Yatskov 2014-10-02 16:18:15 +09:00
parent e830d008d3
commit 62f472bdb3

View File

@ -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);
} }