forked from angular/angularjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
24 lines (20 loc) · 852 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'),
http = require('http'),
path = require('path');
var app = express();
app.configure(function(){
app.set('port', process.env.PORT || 8008);
app.use(express.logger('dev'));
app.use(express.static(path.join(__dirname, '/ko')));
app.use('/css', express.static(path.join(__dirname, '/css')));
app.use('/js', express.static(path.join(__dirname, '/js')));
app.use('/img', express.static(path.join(__dirname, '/img')));
app.use('/font', express.static(path.join(__dirname, '/font')));
app.use('/google-code-prettify', express.static(path.join(__dirname, '/google-code-prettify')));
});
app.configure('development', function(){
app.use(express.errorHandler());
});
http.createServer(app).listen(app.get('port'), function(){
console.log("Express server listening on port " + app.get('port'));
});