ledstrip_sandbox/deploy_editor.sh

8 lines
296 B
Bash
Raw Normal View History

2021-09-23 21:24:27 +02:00
set -x
cd editor
npm ci
npm run build
zip editor.zip dist/*
scp editor.zip root@10.1.0.212:/tmp/editor.zip
ssh root@10.1.0.212 "set -x && cd /tmp && unzip -u editor.zip && cd dist && rm -r /var/www/html/editor/* && cp -r * /var/www/html/editor && chown -R www-data:www-data /var/www/html/editor"