4 lines
287 B
Bash
Executable file
4 lines
287 B
Bash
Executable file
set -x
|
|
zip frontend.zip frontend/*
|
|
scp frontend.zip root@10.1.0.212:/tmp/frontend.zip
|
|
ssh root@10.1.0.212 "set -x && cd /tmp && unzip -u frontend.zip && cd frontend && rm -r /var/www/html/frontend/* && cp -r * /var/www/html/frontend && chown -R www-data:www-data /var/www/html/frontend"
|