From 98ea4212a46e08f20574e383983a038641692260 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Sun, 5 Mar 2023 18:48:37 +0530 Subject: [PATCH] fix: default config for production (#1088) reported here https://discuss.frappe.io/t/frappe-docker-2023-production-setup-password-reset-email-link-added-with-port-8000/101844 --- images/custom/Containerfile | 3 +-- images/production/Containerfile | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/images/custom/Containerfile b/images/custom/Containerfile index ff322921..3a16f952 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -116,8 +116,7 @@ RUN export APP_INSTALL_ARGS="" && \ --verbose \ /home/frappe/frappe-bench && \ cd /home/frappe/frappe-bench && \ - echo "$(jq 'del(.db_host, .redis_cache, .redis_queue, .redis_socketio)' sites/common_site_config.json)" \ - > sites/common_site_config.json && \ + echo "{}" > sites/common_site_config.json && \ find apps -mindepth 1 -path "*/.git" | xargs rm -fr FROM base as backend diff --git a/images/production/Containerfile b/images/production/Containerfile index 60b8bc3e..5f761c81 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -107,8 +107,7 @@ RUN bench init \ /home/frappe/frappe-bench && \ cd /home/frappe/frappe-bench && \ bench get-app --branch=${ERPNEXT_BRANCH} --resolve-deps erpnext ${ERPNEXT_REPO} && \ - echo "$(jq 'del(.db_host, .redis_cache, .redis_queue, .redis_socketio)' sites/common_site_config.json)" \ - > sites/common_site_config.json && \ + echo "{}" > sites/common_site_config.json && \ find apps -mindepth 1 -path "*/.git" | xargs rm -fr FROM base as erpnext