🚀 Enhance deployment script to include backend support, multi-container Docker management, and extended health checks
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* Pokedex.Online Deployment Script
|
* Pokedex.Online Deployment Script
|
||||||
*
|
*
|
||||||
* Deploys the Vue 3 pokedex.online application to Synology NAS via SSH.
|
* Deploys the Vue 3 pokedex.online application with backend to Synology NAS via SSH.
|
||||||
* - Builds the Vue 3 application locally (npm run build)
|
* - Builds the Vue 3 application locally (npm run build)
|
||||||
* - Connects to Synology using configured SSH hosts
|
* - Connects to Synology using configured SSH hosts
|
||||||
* - Transfers built files and Docker configuration via SFTP
|
* - Transfers built files, backend code, and Docker configuration via SFTP
|
||||||
* - Manages Docker deployment with rollback on failure
|
* - Manages multi-container Docker deployment (frontend + backend) with rollback on failure
|
||||||
* - Performs health check to verify deployment
|
* - Performs health checks on both frontend and backend containers
|
||||||
*
|
*
|
||||||
* Usage:
|
* Usage:
|
||||||
* node code/utils/deploy-pokedex.js [--target internal|external] [--port 8080] [--ssl-port 8443]
|
* node code/utils/deploy-pokedex.js [--target internal|external] [--port 8080] [--ssl-port 8443] [--backend-port 3000]
|
||||||
* npm run deploy:pokedex -- --target external --port 8081 --ssl-port 8444
|
* npm run deploy:pokedex -- --target external --port 8081 --ssl-port 8444 --backend-port 3001
|
||||||
*
|
*
|
||||||
* Examples:
|
* Examples:
|
||||||
* npm run deploy:pokedex # Deploy to internal (10.0.0.81) on port 8080
|
* npm run deploy:pokedex # Deploy to internal (10.0.0.81) on port 8080
|
||||||
|
|||||||
Reference in New Issue
Block a user