Commit Graph

15 Commits

Author SHA1 Message Date
root
4ae55fd3c8 chore(deploy): remove debug logging from deployment script
Removed debug logging that was added to troubleshoot the commit hash issue.
The issue has been fixed by changing docker-compose.yml to use pre-built images.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-13 02:48:54 +00:00
root
d70accecb8 debug(deploy): add debug output to track git metadata collection
Added debug logging to see what commit SHA is being collected and passed to Docker build.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-13 02:35:02 +00:00
root
bb39088f81 fix(deploy): ensure correct git metadata and source code in builds
- Change to repo directory before collecting git commit metadata
- Run docker build from repo directory to use correct source code
- Run docker compose commands from repo directory
- This ensures deployed commit hash matches actual code deployed

This was causing deployments to report wrong commit hashes and use old code.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-13 02:21:14 +00:00
root
388c564ccf fix(deploy): correct log function usage in commit verification 2026-05-13 02:20:48 +00:00
root
b4efba965c feat(deploy): add automatic commit hash verification after deployment
- Query /api/devops/version endpoint to get deployed commit
- Compare deployed commit with latest commit in repository
- Warn if deployment didn't use the latest code
- Suggest --force --no-cache if commits don't match

This prevents silent deployment failures where old code is deployed.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-13 02:07:39 +00:00
root
c6351b9bf7 fix(deployment): ensure containers are recreated with new images
- Stop and remove existing containers before starting new ones
- Use force-recreate flag to ensure new images are used
- Fixes issue where containers weren't being updated with latest code

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-13 01:35:27 +00:00
root
e59bd34ab5 fix(deployment): fix command-line argument parsing
- Add INTERACTIVE flag to properly detect when command-line args are used
- Fix deployment script to skip menu when flags are provided
- Allow non-interactive deployment with --force, --skip-health-check, --no-cache

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-12 17:43:25 +00:00
root
067925e5a8 docs(deployment): clarify single production environment model
- Update deployment script header to document this VM as single production environment
- Clarify there are no separate staging/development environments
- All deployments go directly to production on this VM

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-12 17:43:02 +00:00
root
53db0c7847 Unset GITEA_NPM_TOKEN environment variable before reading files
Ensure script always uses token from files instead of inherited
environment variable which may contain stale values.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-12 05:17:58 +00:00
root
08a617a94e Use --build-arg instead of --secret for Gitea token
Update to match Dockerfile changes and bypass Docker BuildKit
secret caching issues.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-12 05:16:35 +00:00
root
b275653d3a Update secret ID to match Dockerfile changes
Update from gitea_npm_token to gitea_npm_token_v2 to match
Dockerfile changes and bypass BuildKit secret cache.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-12 05:14:46 +00:00
root
5d55bd1720 Add interactive menu and package checks to deployment script
- Add interactive numbered menu for manual deployments (7 options)
- Add --no-cache flag support for forcing Docker rebuilds
- Add package publication verification before Docker build
- Display configuration summary before deployment
- Maintain backward compatibility with CLI arguments

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-12 03:39:39 +00:00
root
72b678b9c7 feat(deploy): bake build metadata (commit/branch/timestamp) into images
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
deploy-invttrdg.sh passes git-derived build args to backend and web Dockerfiles
via a build_image() helper. These surface in the new /api/devops/info endpoint
and the DevOps tab in Settings.

Auto-resolves GITEA_NPM_TOKEN from /opt/bytelyst/.gitea_token if unset, and
switches to direct docker build (--secret) instead of docker compose build
(which doesn't support --secret).

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 04:58:22 +00:00
root
bdf0fba468 fix(deployment): correct repo paths for deployment scripts when run from devops-tools directory 2026-05-09 21:49:49 +00:00
root
ca085ce63e Add production deployment scripts for ByteLyst services
- deploy-invttrdg.sh: Single-repo deployment for trading platform
  * Dirty checks (uncommitted changes, unpushed commits)
  * Pre-deployment smoke tests (backend contracts, web DOM tests)
  * Docker build and deployment (backend + web)
  * Post-deployment validation (health checks, endpoint verification)
  * Comprehensive smoke testing for production-grade deployment

- deploy-all.sh: Multi-repo deployment orchestration
  * Deploy all 4 production repos or specific ones
  * Same safety checks and deployment process for each repo
  * Health checks for all services

- DEPLOYMENT_GUIDE.md: Complete deployment documentation
  * Usage instructions for both scripts
  * Service endpoint mappings
  * Troubleshooting guide
  * Docker management commands

These scripts enable safe, tested production deployments with
comprehensive validation at every stage.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-09 21:42:58 +00:00