deploy
Deploy the memory application to the remote server. Use when deploying code, syncing changes, restarting services, or running commands on the production server.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Memory Deployment
The deployment script is at tools/deploy.sh. It manages the remote server memory (EC2 instance) at /home/ec2-user/memory.
Commands
Deploy (most common)
Pull latest code and restart services:
./tools/deploy.sh deploy # deploys master branch
./tools/deploy.sh deploy <branch> # deploys specific branch
Sync
Rsync local code directly to server (bypasses git, useful for testing):
./tools/deploy.sh sync
Syncs: src/, tests/, tools/, db/, docker/, frontend/, requirements/, config files.
Excludes: __pycache__, .git, memory_files, secrets, .env, venv, etc.
Pull
Git pull on the server without restarting:
./tools/deploy.sh pull # pulls master
./tools/deploy.sh pull <branch> # pulls specific branch
Restart
Restart docker services without pulling new code:
./tools/deploy.sh restart
Runs: docker compose up --build -d
Run
Execute arbitrary commands on the server (with venv activated):
./tools/deploy.sh run <command>
Examples:
./tools/deploy.sh run "python -c 'print(1)'"
./tools/deploy.sh run "pip list"
./tools/deploy.sh run "alembic upgrade head"
Typical Workflows
Standard deployment:
git push origin master
./tools/deploy.sh deploy
Quick test without committing:
./tools/deploy.sh sync
./tools/deploy.sh restart
Run migrations:
./tools/deploy.sh run "alembic upgrade head"
Check logs after deploy:
./tools/deploy.sh run "docker compose logs -f"
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!