diff --git a/code/utils/deploy-pokedex.js b/code/utils/deploy-pokedex.js index 259b592..59ca008 100644 --- a/code/utils/deploy-pokedex.js +++ b/code/utils/deploy-pokedex.js @@ -1,16 +1,16 @@ /** * 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) * - Connects to Synology using configured SSH hosts - * - Transfers built files and Docker configuration via SFTP - * - Manages Docker deployment with rollback on failure - * - Performs health check to verify deployment + * - Transfers built files, backend code, and Docker configuration via SFTP + * - Manages multi-container Docker deployment (frontend + backend) with rollback on failure + * - Performs health checks on both frontend and backend containers * * Usage: - * node code/utils/deploy-pokedex.js [--target internal|external] [--port 8080] [--ssl-port 8443] - * npm run deploy:pokedex -- --target external --port 8081 --ssl-port 8444 + * 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 --backend-port 3001 * * Examples: * npm run deploy:pokedex # Deploy to internal (10.0.0.81) on port 8080