Merge branch 'master' of github.com:Jake0oo0/crafatar

This commit is contained in:
Jake 2014-11-02 09:32:16 -06:00
commit 977e7d3a77

View File

@ -3,7 +3,12 @@ var router = express.Router();
/* GET home page. */
router.get('/', function(req, res) {
res.render('index', { title: 'Crafatar', domain: "https://" + req.headers.host, commit: process.env.COMMIT_HASH || "unknown" });
res.render('index', {
title: 'Crafatar',
domain: "https://" + req.headers.host,
// see http://stackoverflow.com/a/14924922/2517068
commit: process.env.HEAD_HASH || "unknown"
});
});