Add deploy script
This commit is contained in:
parent
dc3932bece
commit
d27cb7e61a
20
deploy.sh
Executable file
20
deploy.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
find . -name .DS_Store -delete
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "> Deploying static site to Hetzner..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
pnpm run build || exit 1
|
||||||
|
|
||||||
|
rsync -avz \
|
||||||
|
-e "ssh -i $HOME/.ssh/hetzner_first" \
|
||||||
|
--delete \
|
||||||
|
dist/ \
|
||||||
|
root@vojtechstruhar.com:/var/www/fimuni-mgr-notes
|
||||||
|
|
||||||
|
rm -rf dist
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "Done"
|
Loading…
Reference in New Issue
Block a user