Browse files

upgrade to express

  • Loading branch information...
1 parent 3968efb commit bb7e3a4fcdc75863186935b97865fccc9279d4da @wlaurance wlaurance committed May 25, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −1 package.json
  2. +5 −5 server.js
View
2 package.json
@@ -4,7 +4,7 @@
"author" : "Guy Halford-Thompson",
"repository" : "git://github.com/guyht/Glog",
"dependencies" : {
- "connect" : ">= 1.8.4",
+ "express":">=2.5.9",
"marked" : ">= 0.1.4",
"jade" : ">= 0.19.0",
"mocha": ">= 0.8.2",
View
10 server.js
@@ -1,5 +1,5 @@
var glog = require('./lib/glog'),
- connect = require('connect'),
+ express = require('express'),
path = require('path');
@@ -8,10 +8,10 @@ glog.rebuild(function() {
console.log('Starting server on port ' + options.port);
- var server = connect.createServer(
- connect.static(path.join('blog_repo', '/public')),
- connect.staticCache(),
- connect.router(function(app) {
+ var server = express.createServer(
+ express.static(path.join('blog_repo', '/public')),
+ express.staticCache(),
+ express.router(function(app) {
app.get('/__render', function(req, res, next) {
glog.rebuild(function() {
res.end();

0 comments on commit bb7e3a4

Please sign in to comment.