From 23a819df5837dd9f110038fc3c1fd221e79c2e6e Mon Sep 17 00:00:00 2001 From: GowthamL <45562756+Gowtham-L@users.noreply.github.com> Date: Thu, 4 Sep 2025 11:09:12 +0530 Subject: [PATCH 1/7] Update init.sh --- scripts/init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/init.sh b/scripts/init.sh index 475b859db1..7891dc7614 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -11,6 +11,7 @@ fi rm -rf /workspaces/frappe_codespace/.git source /home/frappe/.nvm/nvm.sh +nvm install 18 nvm alias default 18 nvm use 18 @@ -41,4 +42,4 @@ bench new-site dev.localhost \ bench --site dev.localhost set-config developer_mode 1 bench --site dev.localhost clear-cache -bench use dev.localhost \ No newline at end of file +bench use dev.localhost From dba698db6b47b057db3973e3639bbc8b7524c610 Mon Sep 17 00:00:00 2001 From: GowthamL <45562756+Gowtham-L@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:09:09 +0530 Subject: [PATCH 2/7] Update init.sh fix: yarn install added and bench Redis config url bug fixed --- scripts/init.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index 7891dc7614..fe1b46880a 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -18,6 +18,8 @@ nvm use 18 echo "nvm use 18" >> ~/.bashrc cd /workspace +npm i yarn + bench init \ --ignore-exist \ --skip-redis-config-generation \ @@ -27,9 +29,12 @@ cd frappe-bench # Use containers instead of localhost bench set-mariadb-host mariadb -bench set-redis-cache-host redis-cache:6379 -bench set-redis-queue-host redis-queue:6379 -bench set-redis-socketio-host redis-socketio:6379 +#bench set-redis-cache-host redis-cache:6379 +bench set-config -g redis_cache "redis://redis-cache:6379" +#bench set-redis-queue-host redis-queue:6379 +bench set-config -g redis_queue "redis://redis-queue:6379" +#bench set-redis-socketio-host redis-socketio:6379 +bench set-config -g redis_socketio "redis://redis-queue:6379" # Remove redis from Procfile sed -i '/redis/d' ./Procfile From a31b15b185842657d99f2803cee8036edc177bbc Mon Sep 17 00:00:00 2001 From: GowthamL <45562756+Gowtham-L@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:29:15 +0530 Subject: [PATCH 3/7] fix: yarn global install added --- scripts/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/init.sh b/scripts/init.sh index fe1b46880a..9d237d99ac 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -18,7 +18,7 @@ nvm use 18 echo "nvm use 18" >> ~/.bashrc cd /workspace -npm i yarn +npm install -g yarn bench init \ --ignore-exist \ From f13a27c3c9c73833c407d9ee6766f2f3cdd17d62 Mon Sep 17 00:00:00 2001 From: GowthamL <45562756+Gowtham-L@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:58:38 +0530 Subject: [PATCH 4/7] fix: Maria user name for site creation bug fixed --- scripts/init.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index 9d237d99ac..d6636862b0 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -29,21 +29,18 @@ cd frappe-bench # Use containers instead of localhost bench set-mariadb-host mariadb -#bench set-redis-cache-host redis-cache:6379 -bench set-config -g redis_cache "redis://redis-cache:6379" -#bench set-redis-queue-host redis-queue:6379 -bench set-config -g redis_queue "redis://redis-queue:6379" -#bench set-redis-socketio-host redis-socketio:6379 -bench set-config -g redis_socketio "redis://redis-queue:6379" +bench set-redis-cache-host "redis://redis-cache:6379" +bench set-redis-queue-host "redis://redis-queue:6379" +bench set-redis-socketio-host "redis://redis-queue:6379" # Remove redis from Procfile sed -i '/redis/d' ./Procfile - bench new-site dev.localhost \ ---mariadb-root-password 123 \ +--db-root-username root \ +--db-root-password 123 \ --admin-password admin \ ---no-mariadb-socket +--mariadb-user-host-login-scope='%' bench --site dev.localhost set-config developer_mode 1 bench --site dev.localhost clear-cache From dd2f7a60ec24686def9d0ee7de94a4773d5cdc78 Mon Sep 17 00:00:00 2001 From: GowthamL <45562756+Gowtham-L@users.noreply.github.com> Date: Sat, 6 Sep 2025 11:06:16 +0530 Subject: [PATCH 5/7] changed frappe version 15 --- .devcontainer/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index e18f84b39c..c9d73ca5a4 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -30,7 +30,7 @@ services: image: redis:alpine frappe: - image: frappe/bench:latest + image: frappe/bench:v15 command: sleep infinity environment: - SHELL=/bin/bash @@ -43,4 +43,4 @@ services: volumes: mariadb-data: - postgresql-data: \ No newline at end of file + postgresql-data: From f79a35c469bdc179ff2df6c3aed082019668b63a Mon Sep 17 00:00:00 2001 From: GowthamL <45562756+Gowtham-L@users.noreply.github.com> Date: Sat, 6 Sep 2025 11:15:33 +0530 Subject: [PATCH 6/7] reverted to old version --- .devcontainer/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index c9d73ca5a4..c1c00cd8b7 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -30,7 +30,7 @@ services: image: redis:alpine frappe: - image: frappe/bench:v15 + image: frappe/bench:latest command: sleep infinity environment: - SHELL=/bin/bash From fa4fd39f39504d0907b97ea6956f16c2e17b057e Mon Sep 17 00:00:00 2001 From: JEYASHREESELVAN <144306786+JEYASHREESELVAN@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:38:26 +0530 Subject: [PATCH 7/7] Update init.sh --- scripts/init.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index d6636862b0..60fb096930 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -11,11 +11,11 @@ fi rm -rf /workspaces/frappe_codespace/.git source /home/frappe/.nvm/nvm.sh -nvm install 18 -nvm alias default 18 -nvm use 18 +nvm install 22 +nvm alias default 22 +nvm use 22 -echo "nvm use 18" >> ~/.bashrc +echo "nvm use 22" >> ~/.bashrc cd /workspace npm install -g yarn