add display of app version in UI

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2024-01-07 14:20:34 +02:00
1 parent 17de28965b
commit 39d14c15d6
6 files changed
+24 -4

No files matched your search

+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