mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Fix 'if..' logic to work properly when WOPI_ENABLED is undefined
This commit is contained in:
parent
4136aa0575
commit
5c88e9ab7e
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Only check if connection works when server starts, and if WOPI is
|
# Only check if connection works when server starts, and if WOPI is
|
||||||
# enabled
|
# enabled
|
||||||
if defined? Rails::Server && ENV['WOPI_ENABLED'] == 'true'
|
if defined?(Rails::Server).present? && ENV['WOPI_ENABLED'] == 'true'
|
||||||
missing_vars = []
|
missing_vars = []
|
||||||
%w(
|
%w(
|
||||||
WOPI_TEST_ENABLED WOPI_DISCOVERY_URL WOPI_ENDPOINT_URL USER_SUBDOMAIN
|
WOPI_TEST_ENABLED WOPI_DISCOVERY_URL WOPI_ENDPOINT_URL USER_SUBDOMAIN
|
||||||
|
|
Loading…
Reference in a new issue