chore(docker): 使用内部Git服务器
- frappe: https://git.yierp.vip/erp/frappe-v16.git - yierp: https://git.yierp.vip/erp/yierp-v16.git 避免GitHub连接问题,提高克隆速度
This commit is contained in:
@@ -45,8 +45,8 @@ echo "App linked: ${APP_SOURCE} -> ${BENCH_DIR}/apps/${APP_NAME}/${APP_NAME}"
|
|||||||
if [ ! -d "${BENCH_DIR}/apps/frappe" ]; then
|
if [ ! -d "${BENCH_DIR}/apps/frappe" ]; then
|
||||||
echo "Frappe not found in bench apps. Initializing bench..."
|
echo "Frappe not found in bench apps. Initializing bench..."
|
||||||
|
|
||||||
# Initialize bench with frappe
|
# Initialize bench with frappe from internal Git server
|
||||||
echo "Initializing bench with frappe..."
|
echo "Initializing bench with frappe from internal Git server..."
|
||||||
cd "$(dirname "${BENCH_DIR}")"
|
cd "$(dirname "${BENCH_DIR}")"
|
||||||
|
|
||||||
# Remove incomplete bench if exists
|
# Remove incomplete bench if exists
|
||||||
@@ -54,16 +54,15 @@ if [ ! -d "${BENCH_DIR}/apps/frappe" ]; then
|
|||||||
rm -rf "${BENCH_DIR}"
|
rm -rf "${BENCH_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try GitHub first, fallback to Gitee if available
|
# Use internal Git server
|
||||||
FRAPPE_REPO="https://github.com/frappe/frappe.git"
|
FRAPPE_REPO="https://git.yierp.vip/erp/frappe-v16.git"
|
||||||
|
|
||||||
bench init \
|
bench init \
|
||||||
--skip-redis-config-generation \
|
--skip-redis-config-generation \
|
||||||
--frappe-branch version-16 \
|
--frappe-branch version-16 \
|
||||||
--frappe-path "${FRAPPE_REPO}" \
|
--frappe-path "${FRAPPE_REPO}" \
|
||||||
"${BENCH_DIR}" || {
|
"${BENCH_DIR}" || {
|
||||||
echo "Failed to initialize bench from GitHub"
|
echo "Failed to initialize bench from ${FRAPPE_REPO}"
|
||||||
echo "Note: If you're in China, consider manually cloning from Gitee mirror"
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
echo "Bench initialized successfully"
|
echo "Bench initialized successfully"
|
||||||
|
|||||||
+2
-2
@@ -89,6 +89,6 @@ docstring-code-format = true
|
|||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://frappe.io/yierp"
|
Homepage = "https://frappe.io/yierp"
|
||||||
Repository = "https://gitee.com/yierp/yierp.git"
|
Repository = "https://git.yierp.vip/erp/yierp-v16.git"
|
||||||
Documentation = "https://docs.frappe.io/yierp"
|
Documentation = "https://docs.frappe.io/yierp"
|
||||||
"Bug Reports" = "https://gitee.com/yierp/yierp/issues"
|
"Bug Reports" = "https://git.yierp.vip/erp/yierp-v16/issues"
|
||||||
|
|||||||
Reference in New Issue
Block a user