Makefile(ota-js): usar rsync --chgrp

Así no rompemos en entornos sin sudo (la CI) y es menos hacky
This commit is contained in:
Cat /dev/Nulo 2021-09-18 11:12:01 -03:00
parent a5be895321
commit 98d2bd9a12

View file

@ -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