Improve deploy to be more fault tolerant, allow rollback.
@ricog is already working on this.
Since Jun 15, 2016.
Assessment
This issue has not been assessed yet.
Description
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.
- Dominant language
- Shell
- Stars
- 18
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from loadsys/CakePHP-Shell-Scripts
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
loadsys/CakePHP-Shell-Scripts#74 · 4 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in loadsys/CakePHP-Shell-Scripts
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
community-scripts/ProxmoxVE#17425 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·