From 94a1b633e80daedf1ebc1e16738bee2b702ebb72 Mon Sep 17 00:00:00 2001 From: kjwon15 Date: Thu, 27 Dec 2018 17:06:52 +0900 Subject: [PATCH] Fix GIT_REV on dokku --- bin/pre-deploy | 2 +- relay/nodeinfo.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/pre-deploy b/bin/pre-deploy index e76271f..0df205d 100755 --- a/bin/pre-deploy +++ b/bin/pre-deploy @@ -7,7 +7,7 @@ db: relay.jsonld # Listener listen: 0.0.0.0 -port: ${PORT:-8080} +port: ${PORT:-5000} # Note note: "Make a note about your instance here." diff --git a/relay/nodeinfo.py b/relay/nodeinfo.py index 5556e14..11e7f39 100644 --- a/relay/nodeinfo.py +++ b/relay/nodeinfo.py @@ -1,3 +1,4 @@ +import os import subprocess import urllib.parse @@ -10,7 +11,7 @@ from .database import DATABASE try: commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii') except: - commit_label = '???' + commit_label = os.environ.get('GIT_REV') nodeinfo_template = {