feat(deploy): enhance deployment scripts with skip options for backend and frontend
All checks were successful
Deploy to production / deploy (push) Successful in 1m31s

- Updated `deploy-yourpart-bluegreen.sh` to pass additional arguments for skipping backend or frontend updates.
- Enhanced `update.sh` to handle `--skip-backend` and `--skip-frontend` flags, allowing for more flexible deployment based on changes detected.
- Modified deployment workflow to conditionally execute based on changes in frontend or backend files, improving deployment efficiency.
This commit is contained in:
Torsten Schulz (local)
2026-04-17 11:33:02 +02:00
parent 2461e98fb0
commit 1f10e7c519
8 changed files with 887 additions and 168 deletions

View File

@@ -30,6 +30,7 @@ async function extendBisayaCoursePhase3() {
});
let addedLessons = 0;
let updatedLessons = 0;
for (const course of courses) {
await course.update({
@@ -45,17 +46,9 @@ async function extendBisayaCoursePhase3() {
}
});
if (existing) {
continue;
}
const didactics = BISAYA_PHASE3_DIDACTICS[lessonData.title] || {};
const pedagogy = getBisayaLessonPedagogy(lessonData.num) || {};
await VocabCourseLesson.create({
courseId: course.id,
chapterId: null,
lessonNumber: lessonData.num,
const lessonPayload = {
title: lessonData.title,
description: lessonData.desc,
weekNumber: lessonData.week,
@@ -77,6 +70,20 @@ async function extendBisayaCoursePhase3() {
newUnitTarget: pedagogy.newUnitTarget ?? null,
reviewWeight: pedagogy.reviewWeight ?? null,
isIntensiveReview: Boolean(pedagogy.isIntensiveReview)
};
if (existing) {
await existing.update(lessonPayload);
updatedLessons++;
console.log(`🔄 Kurs ${course.id}: Lektion ${lessonData.num} - ${lessonData.title} aktualisiert`);
continue;
}
await VocabCourseLesson.create({
...lessonPayload,
courseId: course.id,
chapterId: null,
lessonNumber: lessonData.num
});
addedLessons++;
@@ -87,6 +94,7 @@ async function extendBisayaCoursePhase3() {
console.log(`\n🎉 Phase 3 vorbereitet.`);
console.log(` Kurse: ${courses.length}`);
console.log(` Neue Lektionen ergänzt: ${addedLessons}`);
console.log(` Bestehende Lektionen aktualisiert: ${updatedLessons}`);
console.log(' Danach create-bisaya-course-content.js ausführen, wenn für die neuen Lektionen zusätzliche Übungen eingespielt werden sollen.');
}