added LITE env var in express render

This commit is contained in:
cubedro 2015-07-22 13:06:50 +03:00
parent 23721dba97
commit 3b1885a96f

View File

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