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:
@@ -8,19 +8,32 @@ App releases: https://gitea.dialer.work/swissdatabase/rubix/releases
|
|||||||
## 0) SSH on a new VPS (from your PC)
|
## 0) SSH on a new VPS (from your PC)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -O bootstrap-vps-ssh.sh \
|
wget -O bootstrap-vps-ssh.sh https://gitea.dialer.work/swissdatabase/rubix-deploy/raw/branch/main/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
|
chmod +x bootstrap-vps-ssh.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
./bootstrap-vps-ssh.sh
|
./bootstrap-vps-ssh.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
ssh <your-host-alias>
|
ssh <your-host-alias>
|
||||||
```
|
```
|
||||||
|
|
||||||
## 1) Download Rubix (on the VPS)
|
## 1) Download Rubix (on the VPS)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -O install-rubix.sh \
|
wget -O install-rubix.sh https://gitea.dialer.work/swissdatabase/rubix-deploy/raw/branch/main/install-rubix.sh
|
||||||
https://gitea.dialer.work/swissdatabase/rubix-deploy/raw/branch/main/install-rubix.sh
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
chmod +x install-rubix.sh
|
chmod +x install-rubix.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
sudo ./install-rubix.sh
|
sudo ./install-rubix.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -39,7 +52,13 @@ While editing `.env`, set your domain values (`RUBIX_DOMAIN_CMS`, API/DB/Mail ho
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /home/www/callcenter/deploy/docker
|
cd /home/www/callcenter/deploy/docker
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
nano .env
|
nano .env
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -49,6 +68,9 @@ Start:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /home/www/callcenter/deploy/docker
|
cd /home/www/callcenter/deploy/docker
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
sudo ./up.sh
|
sudo ./up.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -62,8 +84,10 @@ Use these only when you need manual control (classic install via `sudo ./up.sh`
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /home/www/callcenter/deploy
|
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.
|
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
|
```bash
|
||||||
cd /home/www/callcenter/deploy/docker
|
cd /home/www/callcenter/deploy/docker
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
docker-cms-certbot
|
docker-cms-certbot
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -79,6 +106,9 @@ docker-cms-certbot
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-asterisk
|
docker-asterisk
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
/etc/init.d/callcenter2 restart
|
/etc/init.d/callcenter2 restart
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -86,5 +116,8 @@ docker-asterisk
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /home/www/callcenter/deploy
|
cd /home/www/callcenter/deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
./rubix_deploy_from_release.sh vX.Y.Z
|
./rubix_deploy_from_release.sh vX.Y.Z
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user