Skip to content

fix(installer): correct deployment paths and update stale dependencies#282

Merged
xlabtg merged 3 commits intoxlabtg:mainfrom
konard:issue-281-2ab367d49ae9
Mar 19, 2026
Merged

fix(installer): correct deployment paths and update stale dependencies#282
xlabtg merged 3 commits intoxlabtg:mainfrom
konard:issue-281-2ab367d49ae9

Conversation

@konard
Copy link
Contributor

@konard konard commented Mar 19, 2026

Summary

Fixes #281 — reviewed the installers and deployment system against the current project structure and corrected all identified issues.

Root Causes Found

File Issue Fix
infrastructure/scripts/deploy.sh $PROJECT_ROOT/deploy/* paths were wrong — deploy lives under infrastructure/deploy/ Updated all 3 cd calls to infrastructure/deploy/…
infrastructure/deploy/docker/docker-compose.yml dockerfile: deploy/docker/Dockerfile was resolved relative to build context (repo root), so the path should include infrastructure/ prefix Fixed for both app and worker
infrastructure/deploy/docker/docker-compose.dev.yml Same dockerfile path bug as above Fixed
apps/telegram-miniapp/backend/.env.example GROQ_MODEL=llama-3.1-70b-versatile (deprecated); gpt-4-turbo-preview / claude-3-opus-20240229 also outdated Updated to current models: llama-3.3-70b-versatile, gpt-4o, claude-3-5-sonnet-20241022
infrastructure/deploy/vercel/api/health.ts Hardcoded fallback version '2.8.0' didn't match package.json 2.43.0 Updated to '2.43.0'
infrastructure/deploy/README.md Directory tree and code examples used old paths (deploy/…, ./deploy/scripts/…) Updated to match actual repo structure

Tests

  • Updated tests/deploy/health-api.test.ts – synced hardcoded version to 2.43.0
  • New tests/deploy/installer.test.ts – 88 tests covering:
    • Installer PHP file presence (25 files)
    • Deploy script presence (5 scripts)
    • deploy.sh path correctness (9 assertions)
    • docker-compose.yml / docker-compose.dev.yml dockerfile paths and service structure
    • vercel.json structure, rewrites, security headers
    • Health API version consistency with package.json
    • .env.example required variables and current Groq model
    • deploy-miniapp.sh supported modes and bot setup invocation
    • setup-bot.sh steps, HTTPS enforcement, and Bot API 9.5 updates
    • validate.sh and health-check.sh logic coverage

All 104 tests pass.

Checklist

  • Deployment paths corrected in deploy.sh
  • Docker Compose dockerfile paths fixed
  • Stale AI model names updated in .env.example
  • Version synced in health.ts
  • README updated to reflect current structure
  • 88 new tests added; all 104 tests pass
  • No breaking changes to existing functionality

This PR was created automatically by the AI issue solver

konard and others added 2 commits March 19, 2026 22:09
Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: xlabtg#281
- deploy.sh: fix PROJECT_ROOT-relative paths to infrastructure/deploy/
  (was: deploy/docker, aws/terraform, kubernetes/helm — all wrong)
- docker-compose.yml, docker-compose.dev.yml: fix dockerfile path to
  infrastructure/deploy/docker/Dockerfile (context is repo root)
- apps/telegram-miniapp/backend/.env.example: update deprecated Groq
  model llama-3.1-70b-versatile → llama-3.3-70b-versatile; update
  OpenAI model gpt-4-turbo-preview → gpt-4o; update Anthropic model to
  claude-3-5-sonnet-20241022
- infrastructure/deploy/vercel/api/health.ts: sync fallback version
  from 2.8.0 to 2.43.0 to match package.json
- infrastructure/deploy/README.md: update directory tree and code
  examples to use correct infrastructure/deploy/ and infrastructure/scripts/
  paths
- tests/deploy/health-api.test.ts: align hardcoded version to 2.43.0
- tests/deploy/installer.test.ts: add 88 new tests covering installer
  file presence, deploy script paths, docker-compose correctness, vercel
  config, env examples, and all shell script logic

Fixes xlabtg#281

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@konard konard changed the title [WIP] Check the installers fix(installer): correct deployment paths and update stale dependencies Mar 19, 2026
@konard konard marked this pull request as ready for review March 19, 2026 22:17
@konard
Copy link
Contributor Author

konard commented Mar 19, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $3.088866
  • Calculated by Anthropic: $2.135757 USD
  • Difference: $-0.953109 (-30.86%)

🤖 Models used:

  • Tool: Claude
  • Requested: sonnet
  • Main model: Claude Sonnet 4.6 (ID: claude-sonnet-4-6, Anthropic, cutoff: 2025-08)
    📎 Log file uploaded as Gist (1599KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
Copy link
Contributor Author

konard commented Mar 19, 2026

✅ Ready to merge

This pull request is now ready to be merged:

  • All CI checks have passed
  • No merge conflicts
  • No pending changes

Monitored by hive-mind with --auto-restart-until-mergeable flag

@xlabtg xlabtg merged commit 1d8b873 into xlabtg:main Mar 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check the installers

2 participants