Initial commit of simple php site.
This commit is contained in:
@@ -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."
|
||||
Reference in New Issue
Block a user