Skip to content

Commit

Permalink
Tweaks to app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cliftonc committed Oct 3, 2011
1 parent bc635e9 commit fb7fcc7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*
*/


var rootpath = process.cwd() + '/',
path = require('path'),
fs = require('fs'),
Expand Down Expand Up @@ -53,9 +54,9 @@ function bootApplication(next) {
app.use(express.responseTime());

// Create dummy session middleware - tag it so we can later replace
var temporarySession = function(req, res, next) {
var temporarySession = function(req, res, next) {
req.session = {};
next();
next();
};
temporarySession.tag = "session";
app.use(temporarySession);
Expand Down Expand Up @@ -119,7 +120,7 @@ function bootApplication(next) {
exports.boot = function (next,cluster) {

//Create our express instance, export for later reference
app = exports.app = express.createServer();
app = exports.app = express.createServer();
app.path = path;
app.isCluster = cluster;

Expand All @@ -128,7 +129,7 @@ exports.boot = function (next,cluster) {
app.config = new Config({},function(err) {

// TODO : Check for error

// Load application configuration
theme = app.config.get('themes:front');
// Bootstrap application
Expand Down

0 comments on commit fb7fcc7

Please sign in to comment.