upd
This commit is contained in:
13
deploy.sh
Executable file
13
deploy.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user