From c39e86d31969e4dfaddd9d7be112666a171bad97 Mon Sep 17 00:00:00 2001 From: Mate Majoros Date: Thu, 8 Jan 2026 14:01:23 +0200 Subject: [PATCH] payments app installation issue fixed --- scripts/create-site.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/create-site.sh b/scripts/create-site.sh index 60be3fd8..08bfc824 100755 --- a/scripts/create-site.sh +++ b/scripts/create-site.sh @@ -42,6 +42,10 @@ docker compose exec -T backend bench --site "$SITE_NAME" install-app lms echo "📦 Downloading Payments App..." docker compose exec -T backend bench get-app payments +# Ensure Payments is installed into the Python environment (editable install) +echo "🐍 Installing Payments Python package into venv..." +docker compose exec -T backend bash -lc 'cd /home/frappe/frappe-bench && pip install -e apps/payments && python -c "import payments;"' + # Install Payments App echo "📦 Installing Payments App..." docker compose exec -T backend bench --site "$SITE_NAME" install-app payments @@ -62,6 +66,9 @@ docker compose exec -T backend bench --site "$SITE_NAME" clear-cache echo "🔄 Running migrations..." docker compose exec -T backend bench --site "$SITE_NAME" migrate +# Restarting backend +docker compose restart backend + echo "✅ Site created successfully!" echo "" echo "📋 Site details:"