eliminacion-localhost
This commit is contained in:
11
deploy.sh
11
deploy.sh
@@ -1,11 +1,12 @@
|
||||
#!/bin/bash
|
||||
# Despliega static/ en release/project-a13tv/
|
||||
SRC="$(dirname "$(realpath "$0")")/static"
|
||||
DST="$(dirname "$(realpath "$0")")/release/project-a13tv"
|
||||
# Despliega static/ y channels.json en release/project-a13tv/
|
||||
PROJ="$(dirname "$(realpath "$0")")"
|
||||
SRC="$PROJ/static"
|
||||
DST="$PROJ/release/project-a13tv"
|
||||
|
||||
echo "Desplegando en $DST ..."
|
||||
|
||||
# --no-group --no-owner: no intenta cambiar propietario/grupo en destino
|
||||
rsync -rlt --no-group --no-owner --chmod=ug+rw "$SRC/" "$DST/"
|
||||
sg webedit -c "rsync -rlt --no-group --no-owner --chmod=ug+rw \"$SRC/\" \"$DST/\""
|
||||
sg webedit -c "cp \"$PROJ/channels.json\" \"$DST/channels.json\""
|
||||
|
||||
echo "Despliegue completado."
|
||||
|
||||
Reference in New Issue
Block a user