Extraiga solo los archivos que han cambiado, para una compilación
Frecuentes
Visto 32 equipos
1 Respuestas
0
If your execution environment has git, you could consider:
- pushing to a bare repo on that execution server
- tener una gancho posterior a la recepción which would checkout a working tree where your files reside.
Both the push and the checkout would only consider a delta and not todos Los archivos.
Ver por ejemplo:
The other solution, without git on the server, is some kind of rsync.
contestado el 23 de mayo de 17 a las 13:05
I'll look into rsync. Help me understand the other suggestion. I'm not very familiar with bare repos and hooks yet, So I'd have a copy of the repo (bare) in that environment. Then, whenever a commit happens at the central repo, that would result in those changes being pushed down to the bare repo because of the hook? Is that right? We're planning on only commiting to the Prod and UAT branches when a deployment also needs to happen (Prod = master) - SERVANT14
@MASTERT I have added links which illustrates the process. stackoverflow.com/a/23510268/6309 e stackoverflow.com/a/23510268/6309 both take into account the branch on which you are pushing. - VonC
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas git build or haz tu propia pregunta.
La pregunta no está clara. - Shaunak D