Makefile(ota-js): usar rsync --chgrp
Así no rompemos en entornos sin sudo (la CI) y es menos hacky
This commit is contained in:
parent
a5be895321
commit
98d2bd9a12
1 changed files with 2 additions and 3 deletions
5
Makefile
5
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
|
||||
|
|
Loading…
Reference in a new issue