This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Build static site
|
||||
hugo
|
||||
|
||||
# Build search
|
||||
./pagefind --site public/
|
||||
|
||||
# correct permissions
|
||||
sudo chown -R 1000:1000 public
|
||||
sudo chmod -R 755 public
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
POSTNAME=$1
|
||||
|
||||
if [[ -z $1 ]]; then
|
||||
echo "needs argument: postname"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
hugo new content content/posts/${POSTNAME}.md
|
||||
|
||||
echo "Create content/posts/${POSTNAME}.md. Remember to set the draft flag correctly!"
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Variables
|
||||
SOURCE_DIR="./public"
|
||||
DEST_USER="demian" # replace with your SSH username
|
||||
DEST_HOST="pyte.dev"
|
||||
DEST_DIR="/opt/docker/website/"
|
||||
SSH_KEY="/home/demian/.ssh/id_ed25519-privat" # replace with your private key path if different
|
||||
|
||||
# Copy folder using scp with SSH key
|
||||
scp -i "$SSH_KEY" -r "$SOURCE_DIR" "$DEST_USER@$DEST_HOST:$DEST_DIR"
|
||||
|
||||
# Optional: print status
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Folder '$SOURCE_DIR' successfully copied to $DEST_HOST:$DEST_DIR"
|
||||
else
|
||||
echo "Error copying folder. Check your SSH key and connection."
|
||||
fi
|
||||
Reference in New Issue
Block a user