Commit b9e6d1b4 by Őry Máté

django: fix git rev-parse for prod env

parent fbd22b18
...@@ -265,7 +265,11 @@ DEFAULT_FROM_EMAIL = "noreply@cloud.ik.bme.hu" ...@@ -265,7 +265,11 @@ DEFAULT_FROM_EMAIL = "noreply@cloud.ik.bme.hu"
DELETE_VM = False DELETE_VM = False
EMAIL_HOST = '152.66.243.92' # giccero ipv4 EMAIL_HOST = '152.66.243.92' # giccero ipv4
CLOUD_URL = 'https://cloud.ik.bme.hu/' CLOUD_URL = 'https://cloud.ik.bme.hu/'
RELEASE = subprocess.check_output( try:
['git', 'rev-parse', '--symbolic-full-name', '--abbrev-ref', 'HEAD']) os.chdir('/opt/webadmin/cloud/')
RELEASE = subprocess.check_output(
['/usr/bin/git', 'rev-parse', '--symbolic-full-name', '--abbrev-ref', 'HEAD'])
except:
RELEASE = 'n/a'
# vim: et sw=4 ai fenc=utf8 smarttab : # vim: et sw=4 ai fenc=utf8 smarttab :
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment