cose matte

lesion 125d4cf97f mattarelli 1 month ago
.vscode f5ac450c6a alt 1 month ago
docs 125d4cf97f mattarelli 1 month ago
theme f5ac450c6a alt 1 month ago
.gitignore e67af21609 Don’t care for those who ignore you. Care for those who are ignoring others for you. 2 years ago
README.md 17165d1430 readme docs 3 months ago
mkdocs.yml 1478050efa cellulari - cfp 1 month ago

README.md

Sito di hackrocchio

Fatto con mkdocs.
Puoi cambiare i testi dei markdown anche qui, poi qualcuno fara' il deploy.

Deploy

niente CI, niente webhook, devi mettere questo qui sotto in .git/hooks/pre-push e renderlo +x

#!/bin/sh
remoteUser="root"
remoteServer="castro.cose.belle"
remotePath="/var/www/hackrocchio"
localPath="./site/"
buildCmd="mkdocs build"

current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')

if [ $current_branch = "master" ]; then
  $buildCmd
  echo Updating files...
  rsync -rzhe ssh --delete --filter=':- .gitignore' ./site/ $remoteUser@$remoteServer:$remotePath
fi

# and you're done!
exit 0