mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
get commit hash from post-commit hook, see http://stackoverflow.com/a/14924922/2517068
This commit is contained in:
parent
b146a5ea79
commit
19597e232d
@ -3,7 +3,12 @@ var router = express.Router();
|
|||||||
|
|
||||||
/* GET home page. */
|
/* GET home page. */
|
||||||
router.get('/', function(req, res) {
|
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"
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user