loadsys / loadsys/CakePHP-Shell-Scripts

Improve deploy to be more fault tolerant, allow rollback.

Ouverte
#64 1 commentaire 0 réactions 1 personne assignée Voir sur GitHub

@ricog y travaille déjà.

Depuis le 15/6/2016.

enhancement
Langage dominant
Shell
Étoiles
18
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.