fix(build): config sync only password_key, databases are app-specific

This commit is contained in:
yumoqing 2026-07-18 23:42:52 +08:00
parent e92008c52b
commit 36c7aa3648

View File

@ -93,16 +93,15 @@ done
# pipeline_task has no separate module
mkdir -p wwwroot/pipeline_task
# 9. Sync config from Sage (password_key + sage DB credentials)
# 9. Sync password_key from Sage (not databases — those are app-specific)
if [ -f /d/apitest/sage/conf/config.json ]; then
python3 -c "
import json
cs=json.load(open('/d/apitest/sage/conf/config.json'))
c=json.load(open('$cdir/conf/config.json'))
c['password_key']=cs.get('password_key','')
c['databases']['sage']=cs['databases']['sage']
json.dump(c,open('$cdir/conf/config.json','w'),ensure_ascii=False,indent=2)
print(' config: synced password_key + sage DB')
print(' config: password_key synced')
"
fi