Add build and deploy script

This commit is contained in:
Alfred Melch 2020-04-20 08:50:21 +02:00
parent a040913e88
commit 305d418f5f
3 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
node_modules/ node_modules/
coverage/ coverage/
public/

6
build.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
rm -rf public
mkdir -p public
cp index.html public
cp style.css public
cp -r src/ public

3
deploy.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
./build.sh
rsync -r public/ root@melch.pro:/var/www/dump.melch.pro --delete