mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +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
|
||||
# enabled
|
||||
if defined? Rails::Server && ENV['WOPI_ENABLED'] == 'true'
|
||||
if defined?(Rails::Server).present? && ENV['WOPI_ENABLED'] == 'true'
|
||||
missing_vars = []
|
||||
%w(
|
||||
WOPI_TEST_ENABLED WOPI_DISCOVERY_URL WOPI_ENDPOINT_URL USER_SUBDOMAIN
|
||||
|
|
Loading…
Reference in a new issue