원클릭으로
deploy-light-bot-to-production
Promote staging commit to production and deploy using SSH and Docker Compose.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Promote staging commit to production and deploy using SSH and Docker Compose.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | Deploy Light Bot to Production |
| description | Promote staging commit to production and deploy using SSH and Docker Compose. |
Promote the current staging commit to production and deploy the Light Bot application.
~/.ssh/personalroot@rmn.pp.uaservices/light-bot-staginglight-bot-staging/root/services/docker-compose.yml~/.ssh/personalroot@rmn.pp.uaservices/light-botlight-bot@power_po2 (same as staging but without _test suffix)/root/services/docker-compose.ymlExecute the deployment process to promote staging to production:
Fetch the current git commit hash from the staging server:
ssh -i ~/.ssh/personal root@rmn.pp.ua "cd services/light-bot-staging && git rev-parse HEAD"
prod branch to the staging commit:
git fetch origin
git checkout prod
git merge --ff-only <STAGING_COMMIT_HASH>
If fast-forward fails, stop and ask the user for guidance.Push the updated prod branch to remote (regular push, no force):
git push origin prod
Before deployment, check if there are new environment variables in .env.example (from prod branch) that need to be added to production .env:
.env.example from local prod branch (just updated).env from the production server.env.example that are missing in .env.env with the default values from .env.example.env - they may be intentionally differentTELEGRAM_CHANNEL_ID and TELEGRAM_SCHEDULE_CHANNEL_ID are set to @power_po2 in production.env back to the production serverOnce prod branch is pushed and .env is synced, run the deployment script:
./.claude/skills/deploy-prod/deploy.sh ~/.ssh/personal root@rmn.pp.ua services/light-bot light-bot
The script will:
After deployment, switch back to main branch:
git checkout main