Merge pull request #219 from cubedro/develop

added LITE env var in express render
This commit is contained in:
Marian OANCΞA 2015-07-24 16:53:58 +03:00
commit f7948d03b4

View File

@ -11,7 +11,7 @@ app.use(bodyParser.urlencoded({ extended: false }));
app.use(express.static(path.join(__dirname, '../dist'))); app.use(express.static(path.join(__dirname, '../dist')));
app.get('/', function(req, res) { app.get('/', function(req, res) {
res.render('index'); res.render((process.env.LITE === true ? 'index-lite' : 'index'));
}); });
// catch 404 and forward to error handler // catch 404 and forward to error handler