This commit is contained in:
nik
2025-10-01 22:50:58 +03:00
parent 0b35b5b968
commit 2767145612
296 changed files with 39425 additions and 0 deletions

13
deploy.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
APP_DIR="/srv/tg-bot"
mkdir -p "$APP_DIR"
rsync -a --delete --exclude ".git" ./ "$APP_DIR"/
cd "$APP_DIR"
if [ -f package.json ]; then
if command -v npm >/dev/null 2>&1; then
npm ci || npm install
fi
fi
systemctl restart tg_filebrowser_bot