Split README command sequences into single-command copy blocks

- Refactor setup and maintenance sections so each shell command is in its own fenced code block
- Improve step-by-step execution clarity for operators running VPS bootstrap and deploy workflows
This commit is contained in:
Sinisa Madzar
2026-06-02 16:58:23 +02:00
parent f6ebd35391
commit 9f79e35401
+39 -6
View File
@@ -8,19 +8,32 @@ App releases: https://gitea.dialer.work/swissdatabase/rubix/releases
## 0) SSH on a new VPS (from your PC)
```bash
wget -O bootstrap-vps-ssh.sh \
https://gitea.dialer.work/swissdatabase/rubix-deploy/raw/branch/main/bootstrap-vps-ssh.sh
wget -O bootstrap-vps-ssh.sh https://gitea.dialer.work/swissdatabase/rubix-deploy/raw/branch/main/bootstrap-vps-ssh.sh
```
```bash
chmod +x bootstrap-vps-ssh.sh
```
```bash
./bootstrap-vps-ssh.sh
```
```bash
ssh <your-host-alias>
```
## 1) Download Rubix (on the VPS)
```bash
wget -O install-rubix.sh \
https://gitea.dialer.work/swissdatabase/rubix-deploy/raw/branch/main/install-rubix.sh
wget -O install-rubix.sh https://gitea.dialer.work/swissdatabase/rubix-deploy/raw/branch/main/install-rubix.sh
```
```bash
chmod +x install-rubix.sh
```
```bash
sudo ./install-rubix.sh
```
@@ -39,7 +52,13 @@ While editing `.env`, set your domain values (`RUBIX_DOMAIN_CMS`, API/DB/Mail ho
```bash
cd /home/www/callcenter/deploy/docker
```
```bash
cp .env.example .env
```
```bash
nano .env
```
@@ -49,6 +68,9 @@ Start:
```bash
cd /home/www/callcenter/deploy/docker
```
```bash
sudo ./up.sh
```
@@ -62,8 +84,10 @@ Use these only when you need manual control (classic install via `sudo ./up.sh`
```bash
cd /home/www/callcenter/deploy
sudo RUBIX_MYSQL_VIA_DOCKER=1 MYSQL_DOCKER_CONTAINER=rubix-mysql \
./apply_sql_migrations.sh
```
```bash
sudo RUBIX_MYSQL_VIA_DOCKER=1 MYSQL_DOCKER_CONTAINER=rubix-mysql ./apply_sql_migrations.sh
```
Use your `RUBIX_MYSQL_CONTAINER` from `.env`. Existing server: restore MySQL datadir under `RUBIX_MYSQL_DATA` instead.
@@ -72,6 +96,9 @@ Use your `RUBIX_MYSQL_CONTAINER` from `.env`. Existing server: restore MySQL dat
```bash
cd /home/www/callcenter/deploy/docker
```
```bash
docker-cms-certbot
```
@@ -79,6 +106,9 @@ docker-cms-certbot
```bash
docker-asterisk
```
```bash
/etc/init.d/callcenter2 restart
```
@@ -86,5 +116,8 @@ docker-asterisk
```bash
cd /home/www/callcenter/deploy
```
```bash
./rubix_deploy_from_release.sh vX.Y.Z
```