show commit hash on site

This commit is contained in:
jomo
2014-11-02 14:54:57 +01:00
parent be42030a0a
commit b9848e6e1f
2 changed files with 5 additions and 2 deletions

View File

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