add display of app version in UI

This commit is contained in:
Alex Turchyn
2024-01-06 22:58:26 +02:00
committed by Pete Matsyburka
parent 17de28965b
commit 39d14c15d6
6 changed files with 24 additions and 4 deletions
+5
View File
@@ -29,6 +29,7 @@ module Docuseal
CERTS = JSON.parse(ENV.fetch('CERTS', '{}'))
TIMESERVER_URL = ENV.fetch('TIMESERVER_URL', nil)
VERSION_FILE_PATH = Rails.root.join('.version')
DEFAULT_URL_OPTIONS = {
host: HOST,
@@ -37,6 +38,10 @@ module Docuseal
module_function
def version
@version ||= VERSION_FILE_PATH.read.strip if VERSION_FILE_PATH.exist?
end
def multitenant?
ENV['MULTITENANT'] == 'true'
end