Skip to content

Commit

Permalink
Adding background cache tasks; redirecting / to /community/members fo…
Browse files Browse the repository at this point in the history
…r now.
  • Loading branch information
josiahp committed Jul 15, 2014
1 parent f270907 commit 25b4dcb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var redis = require('redis'),

console.log('Loading configuration...');
var config = require('./codelove-community.json');
var cache = require('./cache.js');

var app = express();

Expand All @@ -25,7 +26,13 @@ app.use(session({
store: new connect_redis
}));

app.use('/media', express.static(__dirname + '/media'));
app.use('/community/media', express.static(__dirname + '/media'));
app.get('/', function(req, res) {
res.redirect('/community/members');
});

setInterval(cache.scheduleCacheUsers, 60000);
setInterval(cache.scheduleCacheGists, 60000);

app.set('view engine', 'jade');

Expand Down

0 comments on commit 25b4dcb

Please sign in to comment.