-
Notifications
You must be signed in to change notification settings - Fork 2
/
site2.js
35 lines (27 loc) · 840 Bytes
/
site2.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
25
26
27
28
29
30
31
32
33
34
35
var express = require('express');
var app = express.createServer();
app.configure('development', function() {
app.use(express.logger());
app.use(express.errorHandler({
dumpExceptions: true,
showStack: true
}));
});
app.configure('production', function() {
app.use(express.logger());
app.use(express.errorHandler());
});
app.use(express.static(__dirname + '/public'));
/*
* app.use('/css', express.static(__dirname + '/css'));
* app.use('/scripts', express.static(__dirname + '/scripts'));
* app.use('/images', express.static(__dirname + '/images'));
* app.set('views', __dirname + '/views');
* app.set('view engine', 'jade');
* app.set('view options', {layout: false});
*/
// app.register('.html', require('jade'));
app.get('/', function(req, res){
res.sendfile(__dirname + '/public/sig.html')
});
app.listen(4001);