Add deploy script
This commit is contained in:
1 parent
dc3932bece
commit
d27cb7e61a
1 file changed
+20
@@ -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"
|
||||||
Reference in new issue
Block a user