setting up public dir

master
Matt Huntington 10 years ago
parent 009fa6d15f
commit 4eabd815ae

@ -2,9 +2,7 @@ var express = require('express');
var app = express();
var PORT = process.env.PORT || 3000;
app.get('/', function(req, res){
res.send('hello world');
});
app.use(express.static('public'));
app.listen(PORT, function(){
console.log('listening on port ' + PORT);

Loading…
Cancel
Save