Files
shattered-pixel-dungeon-web…/html/deployWeb.sh
2025-06-03 20:10:46 +03:00

10 lines
265 B
Bash
Executable File

#!/usr/bin/env bash
TARGET_FOLDER="shatteredPixelDungeon"
# shellcheck disable=SC2029
if ssh vps "[[ -d /var/www/$TARGET_FOLDER ]]"; then
ssh vps "find /var/www/$TARGET_FOLDER -mindepth 1 -delete"
scp -r ../release/webapp/* vps:/var/www/$TARGET_FOLDER
fi