بنقرة واحدة
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