Agent skill
Deploy Light Bot to Staging
Deploy the Light Bot application to the staging server using SSH and Docker Compose.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/deploy-light-bot-to-staging
SKILL.md
Deploy Light Bot to Staging
Deploy the Light Bot application to the staging server using SSH and Docker Compose.
Server Configuration
- SSH Key:
~/.ssh/personal - SSH Host:
root@rmn.pp.ua - Project Directory:
services/light-bot-staging - Service Name:
light-bot-staging - Telegram Channels:
@power_po2_test(for both status and schedule notifications in staging) - Docker Compose File:
/root/services/docker-compose.yml
Task
Execute the deployment process to update the Light Bot on the staging server:
Step 1: Check and Sync Environment Variables
Before deployment, check if there are new environment variables in .env.example that need to be added to .env:
- Fetch both files (use server configuration from above):
.env.examplefrom local project.envfrom the server
- Compare them to find any new variables in
.env.examplethat are missing in.env - If new variables are found:
- Add them to
.envwith the default values from.env.example - Important: Do NOT modify existing values in
.env- they may be intentionally different - Note: Ensure
TELEGRAM_CHANNEL_IDandTELEGRAM_SCHEDULE_CHANNEL_IDare set to@power_po2_testin staging - Ask the user if unsure about any changes
- Add them to
- If changes were made, upload the updated
.envback to the server
Step 2: Run Deployment Script
Once .env is synced, run the deployment script with the server configuration:
bash
./.claude/skills/deploy-staging/deploy.sh ~/.ssh/personal root@rmn.pp.ua services/light-bot-staging light-bot-staging
The script will:
- SSH into the staging server (root@rmn.pp.ua)
- Navigate to project directory
- Pull latest changes from git
- Rebuild the Docker image
- Restart the service with docker-compose
Didn't find tool you were looking for?