-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
24 lines (19 loc) · 790 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var express = require('express');
var app = express.createServer();
app.get('/', function(request, response) {
response.sendfile('/index.html', {root: __dirname});
});
app.configure(function() {
app.use('/css', express.static(__dirname + '/css'));
app.use('/js', express.static(__dirname + '/js'));
app.use('/images', express.static(__dirname + '/images'));
app.use('/2010', express.static(__dirname + '/2010'));
app.use('/2011', express.static(__dirname + '/2011'));
app.use('/2012', express.static(__dirname + '/2012'));
app.use('/2013', express.static(__dirname + '/2013'));
app.use('/2014', express.static(__dirname + '/2014'));
});
var port = process.env.PORT || 3000;
app.listen(port, function() {
console.log('Listening on ' + port);
});