mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 22:51:37 +00:00
little css
This commit is contained in:
5
app.js
5
app.js
@@ -12,11 +12,13 @@ var dbURL = 'mongodb://localhost/database';
|
||||
var db = require('mongoose').connect(dbURL);
|
||||
var qs = require('qs');
|
||||
var MongoStore = require('connect-mongo')(express);
|
||||
var gzippo = require('gzippo');
|
||||
|
||||
// Configuration
|
||||
app.configure(function(){
|
||||
app.set('views', __dirname + '/views');
|
||||
app.set('view engine', 'jade');
|
||||
app.use(express.compress());
|
||||
app.use(express.bodyParser());
|
||||
app.use(express.methodOverride());
|
||||
app.use(express.cookieParser('my secret string'));
|
||||
@@ -34,7 +36,8 @@ app.configure(function(){
|
||||
next();
|
||||
});
|
||||
app.set('port', 3000);
|
||||
app.use(express.static(__dirname + '/public'));
|
||||
//app.use(express.static(__dirname + '/public'));
|
||||
app.use(gzippo.staticGzip(__dirname + '/public', {contentTypeMatch: /text|javascript|json|svg/}));
|
||||
app.use(app.router);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user