From 305d418f5f8a2f178fadc3ab78ba611074eb7e4f Mon Sep 17 00:00:00 2001 From: Alfred Melch Date: Mon, 20 Apr 2020 08:50:21 +0200 Subject: [PATCH] Add build and deploy script --- .gitignore | 3 ++- build.sh | 6 ++++++ deploy.sh | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 build.sh create mode 100755 deploy.sh diff --git a/.gitignore b/.gitignore index 642271f..251237e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -coverage/ \ No newline at end of file +coverage/ +public/ \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..07e0d11 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash +rm -rf public +mkdir -p public +cp index.html public +cp style.css public +cp -r src/ public \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..bc50af2 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,3 @@ + #!/bin/bash + ./build.sh + rsync -r public/ root@melch.pro:/var/www/dump.melch.pro --delete \ No newline at end of file