From b9d018fe49e38562b94763498ec51aa5a3c3c039 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Sat, 7 Jan 2023 17:45:40 +0530 Subject: [PATCH] fix: initiate empty common_site_config.json default config has host keys set to localhost causes connection errors --- images/custom/Containerfile | 1 + images/production/Containerfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/images/custom/Containerfile b/images/custom/Containerfile index a4b080c0..17022ae8 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -96,6 +96,7 @@ RUN export APP_INSTALL_ARGS="" && \ --skip-assets \ --apps_path=/opt/frappe/apps.json \ /home/frappe/frappe-bench && \ + echo "{}" > /home/frappe/frappe-bench/sites/common_site_config.json && \ cd /home/frappe/frappe-bench && \ bench setup requirements && \ find /home/frappe/frappe-bench/apps -mindepth 1 -path "*/.git" | xargs rm -fr diff --git a/images/production/Containerfile b/images/production/Containerfile index c9995164..8193cdef 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -86,7 +86,8 @@ RUN bench init \ --skip-redis-config-generation \ --verbose \ --skip-assets \ - /home/frappe/frappe-bench + /home/frappe/frappe-bench && \ + echo "{}" > /home/frappe/frappe-bench/sites/common_site_config.json WORKDIR /home/frappe/frappe-bench