diff --git a/app/executor.php b/app/executor.php index 02d1534190..d095759772 100644 --- a/app/executor.php +++ b/app/executor.php @@ -1,7 +1,6 @@ on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swo ->addHeader('Pragma', 'no-cache') ->setStatusCode(500); - $response->dynamic( - new Document($output), - $utopia->isDevelopment() ? Response::MODEL_ERROR_DEV : Response::MODEL_ERROR - ); + $response->json($output); }, ['error', 'utopia', 'request', 'response']); try { diff --git a/docker-compose.yml b/docker-compose.yml index a73b34a7b5..3c6ffb5a56 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -399,24 +399,8 @@ services: - appwrite-functions:/storage/functions:rw - appwrite-builds:/storage/builds:rw - /tmp:/tmp:rw - - ./app:/usr/src/code/app - - ./src:/usr/src/code/src - - ./dev:/usr/local/dev - depends_on: - - redis - - mariadb environment: - _APP_ENV - - _APP_OPENSSL_KEY_V1 - - _APP_REDIS_HOST - - _APP_REDIS_PORT - - _APP_REDIS_USER - - _APP_REDIS_PASS - - _APP_DB_HOST - - _APP_DB_PORT - - _APP_DB_SCHEMA - - _APP_DB_USER - - _APP_DB_PASS - _APP_FUNCTIONS_TIMEOUT - _APP_FUNCTIONS_BUILD_TIMEOUT - _APP_FUNCTIONS_CONTAINERS @@ -426,9 +410,6 @@ services: - _APP_FUNCTIONS_MEMORY_SWAP - _APP_EXECUTOR_SECRET - _APP_EXECUTOR_RUNTIME_NETWORK - - _APP_USAGE_STATS - - _APP_STATSD_HOST - - _APP_STATSD_PORT - _APP_LOGGING_PROVIDER - _APP_LOGGING_CONFIG - DOCKERHUB_PULL_USERNAME