shmagexyz-hugo

placeholder description
git clone git@git.shmage.xyz/shmagexyz-hugo.git
Log | Files | Refs | Submodules

publish (287B)


      1 #!/bin/sh
      2 
      3 die(){
      4   echo "$1"; exit 1
      5 }
      6 
      7 [[ -d bin ]] || die "must be run within base folder"
      8 
      9 echo "generating website..."
     10 hugo || die "hugo exited with error"
     11 echo "copying files..."
     12 rsync -rvPz --delete public/ ian@shmage.xyz:/var/www/shmagexyz-hugo/ || die "rsync exited with error"