feat: Refactor service management scripts to use a unified dev script

- Added package.json to manage development scripts.
- Updated restart-services.ps1 to call the new dev script for starting services.
- Refactored start-admin.ps1, start-backend.ps1, start-frontend.ps1, and start-mcp.ps1 to utilize the dev script for starting respective services.
- Enhanced stop-services.ps1 to improve process termination logic by matching command patterns.
This commit is contained in:
2026-03-29 21:36:13 +08:00
parent 84f82c2a7e
commit 92a85eef20
137 changed files with 14181 additions and 2691 deletions

View File

@@ -17,6 +17,10 @@ mod m20260328_000006_add_ai_to_site_settings;
mod m20260328_000007_create_ai_chunks;
mod m20260328_000008_enable_pgvector_for_ai_chunks;
mod m20260328_000009_add_paragraph_comments;
mod m20260328_000010_add_paragraph_comments_toggle_to_site_settings;
mod m20260328_000011_add_post_images_and_music_playlist;
mod m20260329_000012_add_link_url_to_reviews;
mod m20260329_000013_add_ai_provider_presets_to_site_settings;
pub struct Migrator;
#[async_trait::async_trait]
@@ -38,6 +42,10 @@ impl MigratorTrait for Migrator {
Box::new(m20260328_000007_create_ai_chunks::Migration),
Box::new(m20260328_000008_enable_pgvector_for_ai_chunks::Migration),
Box::new(m20260328_000009_add_paragraph_comments::Migration),
Box::new(m20260328_000010_add_paragraph_comments_toggle_to_site_settings::Migration),
Box::new(m20260328_000011_add_post_images_and_music_playlist::Migration),
Box::new(m20260329_000012_add_link_url_to_reviews::Migration),
Box::new(m20260329_000013_add_ai_provider_presets_to_site_settings::Migration),
// inject-above (do not remove this comment)
]
}