From 6fe34d3e7b91144b805812128a40a6a4a41c0a1a Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 31 Jan 2015 21:13:28 -0800 Subject: [PATCH] add github dep --- app.yaml | 1 + layout/bootstrap.moon | 3 +++ nginx.conf | 1 + 3 files changed, 5 insertions(+) diff --git a/app.yaml b/app.yaml index 235f12d..aed7c86 100644 --- a/app.yaml +++ b/app.yaml @@ -2,3 +2,4 @@ name: "christine" dependencies: - moonscript + - github diff --git a/layout/bootstrap.moon b/layout/bootstrap.moon index b7d2053..1b9568c 100644 --- a/layout/bootstrap.moon +++ b/layout/bootstrap.moon @@ -54,6 +54,9 @@ class Layout extends Widget p class: "text-muted", -> text "Christine Cadence Dodrill - #{os.date "%Y"}" + if os.getenv "GIT_REV" + text " revision #{os.getenv("GIT_REV")\sub 1,8}" + body: => div class: "container", -> if @flash diff --git a/nginx.conf b/nginx.conf index fb218d7..ae46ff7 100644 --- a/nginx.conf +++ b/nginx.conf @@ -4,6 +4,7 @@ daemon off; env PORT; env GITHUB_TOKEN; +env GIT_REV; events { worker_connections 1024;