Features
Sync local projects to remote servers via ssh-dev-suite, with deployment hooks and rollback support.
Configuration
config.yaml deploy section:
profile: Connection configuration namelocal_path/remote_path: Local and remote pathssync_mode: full (full push, delete extras) | incremental (only transfer changes)exclude: Exclude file listpre_deploy/post_deploy: Remote commands before and after deploymentrollback: Rollback command list
Usage
Deploy: bash deploy/scripts/ssh-deploy.sh deploy
Rollback: bash deploy/scripts/ssh-deploy.sh rollback
Notes
- full mode deletes extra files on the remote side; make sure remote_path is correct
- rollback commands need to be configured by the user according to the scenario
Token Constraints
- Deployment logs: when rsync output is long, focus only on errors and the final status
- Hook command output: when over 50 lines, truncate to show the head and tail
- Repeated information: do not restate known content