Initial commit of simple php site.

This commit is contained in:
2026-05-22 13:02:57 +02:00
parent 96419b9f81
commit b2b00df260
11 changed files with 129 additions and 7 deletions
Executable
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
set -e
REMOTE_PATH="/home/admin/www/jasonhilder.dev/"
echo "Deploying to server..."
# Sync local project to server over SSH, only transferring changed files.
# -a = archive mode (preserves permissions, timestamps etc)
# -v = verbose output
# -z = compress data during transfer
# --delete = remove files on server that no longer exist locally
# --exclude = skip these files/dirs, they don't belong on the server
rsync -avz --delete \
--exclude='.git' \
--exclude='README.md' \
--exclude='deploy.sh' \
./ "server:$REMOTE_PATH"
echo "Deploy complete."