diff options
| author | Andrew Guschin <guschin.drew@gmail.com> | 2022-04-03 12:01:38 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin.drew@gmail.com> | 2022-04-03 12:01:38 +0400 |
| commit | a3e3a41f47a80ed53cddf36a0f2a59a399b9176f (patch) | |
| tree | 5156fb69e65d4b704cb3d5e9b6fdca834a95b0b4 /publish.sh | |
Initial commit
Diffstat (limited to 'publish.sh')
| -rwxr-xr-x | publish.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..031545d --- /dev/null +++ b/publish.sh @@ -0,0 +1,7 @@ +#!/bin/sh +mkdir -p ./public +rm -r ./public/* +hugo +ssh root@vasthecat.ru 'rm -r /var/www/vasthecat.ru/*' +scp -r ./public/* root@vasthecat.ru:/var/www/vasthecat.ru/ +ssh root@vasthecat.ru 'chown -R www-data:www-data /var/www/vasthecat.ru/' |