loadsys / loadsys/CakePHP-Shell-Scripts

Improve deploy to be more fault tolerant, allow rollback.

Offen
#64 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@ricog arbeitet bereits daran.

Seit 15.6.2016.

enhancement
Vorherrschende Sprache
Shell
Sterne
18
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.