This commit is contained in:
15
bin/deploy-local
Executable file
15
bin/deploy-local
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
repo_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
||||
target_dir="${1:-/var/www/davideisinger.com}"
|
||||
|
||||
pushd "${repo_root}" >/dev/null
|
||||
mkdir -p "${target_dir}"
|
||||
rsync \
|
||||
-v \
|
||||
-r \
|
||||
--delete \
|
||||
public/ \
|
||||
"${target_dir}/"
|
||||
popd >/dev/null
|
||||
Reference in New Issue
Block a user