Added Node.js static file server
This commit is contained in:
parent
5909cc8ce1
commit
7317281b5d
@ -1,5 +1,5 @@
|
|||||||
var express = require('express');
|
var express = require('express');
|
||||||
var app = express();
|
var app = express();
|
||||||
app.use(express.compress());
|
app.use(express.compress());
|
||||||
app.use(express.static(__dirname));
|
app.use('/stackedit', express.static(__dirname));
|
||||||
app.listen(process.env.PORT || 3000);
|
app.listen(process.env.PORT || 3000);
|
Loading…
Reference in New Issue
Block a user