From 31a7cca9061d4fa67651d636b83d8fd103025cd2 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Fri, 1 Sep 2023 17:08:51 -0400 Subject: [PATCH] chore: add missing env variable --- .env | 3 ++- docker-compose.yml | 1 + src/Appwrite/Platform/Tasks/Doctor.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 6ef35b57c1..025f8ae8be 100644 --- a/.env +++ b/.env @@ -1,4 +1,5 @@ -_APP_ENV=development +_APP_ENV=production +_APP_HOME=https://appwrite.io _APP_LOCALE=en _APP_WORKER_PER_CORE=6 _APP_CONSOLE_WHITELIST_ROOT=disabled diff --git a/docker-compose.yml b/docker-compose.yml index b27c3581af..35326655b8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -95,6 +95,7 @@ services: - -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php environment: - _APP_ENV + - _APP_HOME - _APP_WORKER_PER_CORE - _APP_LOCALE - _APP_CONSOLE_WHITELIST_ROOT diff --git a/src/Appwrite/Platform/Tasks/Doctor.php b/src/Appwrite/Platform/Tasks/Doctor.php index 9a6d6a2847..423dd78fe7 100644 --- a/src/Appwrite/Platform/Tasks/Doctor.php +++ b/src/Appwrite/Platform/Tasks/Doctor.php @@ -245,7 +245,7 @@ class Doctor extends Action try { if (App::isProduction()) { Console::log(''); - $version = \json_decode(@\file_get_contents(App::getEnv('_APP_HOME', 'http://localhost') . '/v1/health/version'), true); + $version = \json_decode(@\file_get_contents(App::getEnv('_APP_HOME', 'http://localhost') . '/version'), true); if ($version && isset($version['version'])) { if (\version_compare($version['version'], App::getEnv('_APP_VERSION', 'UNKNOWN')) === 0) {