loadsys / loadsys/CakePHP-Shell-Scripts
Improve deploy to be more fault tolerant, allow rollback.
@ricog 已經在處理了。
開始於 2016年6月15日。
- 主要語言
- Shell
- 星號
- 18
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
描述
This will require a restructuring of how we store project code on servers.
Basically there would be 2 (or 3) copies of a project on a "production" server at any given time.
There are three relevant locations (none of these names are final):
- `~/projectroot` (hold the git clone)
- `~/live` (holds an rsync copy of the project root from the last "deploy")
- `/var/www` (symlink to `~/live`)
When you run an "update", you `git pull` to update ~/projectroot, but that's not "live" so nothing changes yet. Then you rsync the entire folder into a new ~/staging folder, run `composer install` and whatever else there, and if that all succeeds, move the symlink to point to it.
Then you have a "rollback" target still in the old `~/live` folder that's only a symlink (and maybe migrations run down) away.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
評估
這個 Issue 還沒有評估資料。