From 74a5e70e0451c691fc31c43cd370765f1872ee99 Mon Sep 17 00:00:00 2001 From: Peter Woo Date: Tue, 21 Mar 2017 14:58:56 -0700 Subject: [PATCH] Add a static file serving the build's git revision --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index a12e42e..921644d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,7 @@ if [ "$(tr '[:upper:]' '[:lower:]' <<<"$NODE_ENV")" = "production" ]; then npm run build:prod + git rev-parse HEAD >.build/revision fi