From 98d2bd9a120a1c34b31f3cba56c07379a19c904a Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 18 Sep 2021 11:12:01 -0300 Subject: [PATCH] Makefile(ota-js): usar rsync --chgrp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Así no rompemos en entornos sin sudo (la CI) y es menos hacky --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a991fc8..06c7214 100644 --- a/Makefile +++ b/Makefile @@ -102,9 +102,8 @@ save: ## Subir la imagen Docker al nodo delegado @echo -e "\a" ota-js: assets ## Actualizar Javascript en el nodo delegado - sudo chgrp -R 82 public/ - rsync -avi --delete-after public/ $(delegate):/srv/sutty/srv/http/data/_$(public)/ - rsync -avi --delete-after public/ $(delegate):/srv/sutty/srv/http/data/_public/_staging/ + rsync -avi --chown=:82 --delete-after public/ $(delegate):/srv/sutty/srv/http/data/_$(public)/ + rsync -avi --chown=:82 --delete-after public/ $(delegate):/srv/sutty/srv/http/data/_public/_staging/ ssh $(delegate) docker exec $(container) sh -c "cat /srv/http/tmp/puma.pid | xargs -r kill -USR2" ota: ## Actualizar Rails en el nodo delegado