var express = require('express');
var compression = require('compression');
var seo = require('mean-seo');

var app = express();

// Enable gzip compression.
app.use(compression());

// Enable PhantomJS SEO.
app.use(seo());

app.use('/', express.static(__dirname + '/dist'));
app.listen(process.env.PORT);


var express = require('express');
var compression = require('compression');
var seo = require('mean-seo');

var app = express();

// Enable gzip compression.
app.use(compression());

// Enable PhantomJS SEO.
if (process.env.REDISCLOUD_URL) {
  // If we've got Redis available, use that.
  app.use(seo({ cacheClient: 'redis' }));
} else {
  // Otherwise, use regular disk-based cache.
  app.use(seo());
}

app.use('/', express.static(__dirname + '/dist'));
app.listen(process.env.PORT);


Switch to redis based caching.
Switch to redis based caching.
