Add short up.sh deploy+restart helper

This commit is contained in:
Jage9
2026-02-20 17:52:56 -05:00
parent 036602588e
commit c6eac88e85
2 changed files with 25 additions and 0 deletions

View File

@@ -58,6 +58,13 @@ Notes:
- For `https://bestmidi.com/chgrid/`, use `/chgrid/`. - For `https://bestmidi.com/chgrid/`, use `/chgrid/`.
- For site root deploy (`https://bestmidi.com/`), use `/`. - For site root deploy (`https://bestmidi.com/`), use `/`.
Shortcut (client deploy + service restart):
```bash
cd /home/bestmidi/chgrid
./deploy/scripts/up.sh /home/bestmidi/chgrid /home/bestmidi/public_html/chgrid /chgrid/
```
## 5) Install/restart signaling service (systemd) ## 5) Install/restart signaling service (systemd)
```bash ```bash
@@ -150,6 +157,13 @@ sudo systemctl restart chat-grid.service
journalctl -u chat-grid.service -n 50 --no-pager journalctl -u chat-grid.service -n 50 --no-pager
``` ```
Typical quick update:
```bash
cd /home/bestmidi/chgrid
./deploy/scripts/up.sh /home/bestmidi/chgrid /home/bestmidi/public_html/chgrid /chgrid/
```
Notes: Notes:
- Run Apache install/reload steps again only if proxy config changed. - Run Apache install/reload steps again only if proxy config changed.
- If your checkout has local changes, stash or commit before `git pull`. - If your checkout has local changes, stash or commit before `git pull`.

11
deploy/scripts/up.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT="${1:-/home/bestmidi/chgrid}"
PUBLISH_DIR="${2:-/home/bestmidi/public_html/chgrid}"
BASE_PATH="${3:-/chgrid/}"
SERVICE_NAME="${4:-chat-grid.service}"
"$REPO_ROOT/deploy/scripts/deploy_client.sh" "$REPO_ROOT" "$PUBLISH_DIR" "$BASE_PATH"
sudo systemctl restart "$SERVICE_NAME"
sudo systemctl status "$SERVICE_NAME" --no-pager