Compare commits

...

3 Commits

Author SHA1 Message Date
293acb6fa0 add simple logging 2025-01-15 10:34:01 +00:00
27d74443a8 fix publish hostname 2025-01-15 10:23:20 +00:00
a38723b1f0 fix new command;change video url to rumble 2025-01-15 10:21:47 +00:00
3 changed files with 9 additions and 6 deletions

View File

@ -34,4 +34,4 @@ canonifyurls = true
home = "/" home = "/"
blog = "/blog/" blog = "/blog/"
links = "/links/" links = "/links/"
videos = "https://odysee.com/@ataricode:0?view=content" videos = "https://rumble.com/c/gmgauthier2"

2
new
View File

@ -42,4 +42,4 @@ filename=${tmp,,}
echo "$filename" echo "$filename"
hugo new "${contentType}"/"${filename}".md hugo new "${contentType}"/"${filename}".md
$ED content/"${contentType}"/"${filename}".md # $ED content/"${contentType}"/"${filename}".md

View File

@ -3,10 +3,13 @@
# commit and push... # commit and push...
git add .;git commit -m"$@";git push -u origin master git add .;git commit -m"$@";git push -u origin master
echo "Remove old deploy site..."
rm -rf public # destroy the old build first rm -rf public # destroy the old build first
echo "Generate new deploy site..."
hugo # build the new site hugo # build the new site
sudo chown -R gmgauthier:www-data ./public/* # set the ownership before transfer echo "Set deploy site ownership..."
sudo chown -R gmgauthier:www-data ./public # set the ownership before transfer
rsync --super -avh -e ssh ./public/* gmgauthier@diogenes:/hosting/sites/ataricode.com echo "Rsync to host..."
rsync --super -avh -e ssh ./public/* gmgauthier@socrates:/var/www/ataricode.com
# echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash # echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash