Add nuclear option to completely remove:
- All Docker containers
- All Docker images
- All Docker volumes (database data)
- All Docker networks
- All build cache
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- rebuild now uses cache by default
- only ignores cache when --no-cache is explicitly passed
Usage:
./deploy.sh rebuild conversation # uses cache
./deploy.sh rebuild conversation --no-cache # ignores cache
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add do_rebuild function to rebuild Docker images without cache.
Supports rebuilding individual services or all services at once.
Usage:
./deploy.sh rebuild conversation # rebuild single service
./deploy.sh rebuild all # rebuild all services
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove image deletion and rebuild steps
- Only delete database volumes and restart services
- TypeORM synchronize:true handles schema creation
- Much faster: no recompilation needed
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add data-source.prod.ts for compiled JS migrations
- Add migration:run:prod script to package.json
- Update deploy.sh to try prod migration first, fallback to dev
- Keep SQL fallback in full-reset as safety net with proper indexes
This ensures migrations work in Docker where ts-node may not be available.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add SQL to create consulting_stage, consulting_state, collected_info,
recommended_programs, conversion_path, device_info columns
- Runs after migration step in full-reset to ensure V2 features work
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add do_full_reset function that deletes all data and rebuilds system
- Preserves SSL certificates (stored in /etc/letsencrypt/)
- Requires explicit YES confirmation before proceeding
- Includes: stop services, clean Docker, rebuild, migrate, restart
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Change PostgreSQL image from postgres:15-alpine to pgvector/pgvector:pg15
- Add init_database() function to auto-detect and initialize database
- Add 'db init' command for manual database initialization
- Database init runs automatically on first 'start all' deployment
- Includes admin account creation and pgvector extension verification
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Kong is configured to use DB-less mode with declarative config
(kong/kong.yml), so remove the obsolete kong-database and
migrations steps from the deploy script.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>