Fix GIT_REV on dokku
This commit is contained in:
parent
5b921c52f6
commit
94a1b633e8
|
@ -7,7 +7,7 @@ db: relay.jsonld
|
||||||
|
|
||||||
# Listener
|
# Listener
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
port: ${PORT:-8080}
|
port: ${PORT:-5000}
|
||||||
|
|
||||||
# Note
|
# Note
|
||||||
note: "Make a note about your instance here."
|
note: "Make a note about your instance here."
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
|
@ -10,7 +11,7 @@ from .database import DATABASE
|
||||||
try:
|
try:
|
||||||
commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii')
|
commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii')
|
||||||
except:
|
except:
|
||||||
commit_label = '???'
|
commit_label = os.environ.get('GIT_REV')
|
||||||
|
|
||||||
|
|
||||||
nodeinfo_template = {
|
nodeinfo_template = {
|
||||||
|
|
Loading…
Reference in New Issue