fix: move debug , deploy to super admin children

This commit is contained in:
oat_dev 2024-07-04 10:53:26 +07:00
parent 6a90488d0a
commit 0470184363
9 changed files with 10 additions and 25 deletions

View file

@ -2,18 +2,5 @@
ROOT_DIR=/app
# Replace env vars in JavaScript files
echo "Replacing env constants in JS"
for file in $ROOT_DIR/assets/app.*.js* $ROOT_DIR/js/app.*.js* $ROOT_DIR/index.html $ROOT_DIR/precache-manifest*.js;
do
echo "Processing $file ...";
sed -i 's|VITE_COMPETITIVE_EXAM_PANEL|'${VITE_COMPETITIVE_EXAM_PANEL}'|g' $file
sed -i 's|VITE_QUALIFY_DISABLE_EMAM_PANEL|'${VITE_QUALIFY_DISABLE_EMAM_PANEL}'|g' $file
sed -i 's|VITE_QUALIFY_EXAM_PANEL|'${VITE_QUALIFY_EXAM_PANEL}'|g' $file
sed -i 's|VITE_S3CLUSTER_PUBLIC_URL|'${VITE_S3CLUSTER_PUBLIC_URL}'|g' $file
done
echo "Starting Nginx"
nginx -g 'daemon off;'

View file

@ -17,6 +17,15 @@
{
"label": "การใช้งานผู้ดูแลระบบระดับสูง",
"path": "/manual/chapter-2-superadmin-maintenance"
},
{
"label": "คู่มือการตรวจสอบและแก้ไข",
"path": "/manual/chapter-3-superadmin-debug"
},
{
"label": "คู่มือการจัดการระบบ",
"path": "/manual/chapter-4-superadmin-build-and-deploy"
}
]
},
@ -157,17 +166,6 @@
"path": "/manual/chapter-11-user-retire"
}
]
},
{
"icon": "mdi-file-outline",
"activeIcon": "mdi-file",
"label": "คู่มือการตรวจสอบและแก้ไข",
"path": "/debug"
},
{
"icon": "mdi-file-outline",
"activeIcon": "mdi-file",
"label": "คู่มือการจัดการระบบ",
"path": "/build-and-deploy"
}
]