Skip to content

Commit 6607869

Browse files
authored
docs: use get.caprover.com for installer across all languages (#253)
1 parent c8e5270 commit 6607869

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎content/en/docs-next/get-started.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ On the server:
2121

2222
```bash
2323
sudo apt update && sudo apt install -y curl
24-
curl -fsSLo caprover-install.sh \
25-
https://raw.githubusercontent.com/caprover/caprover/master/scripts/user/installer/caprover-install.sh
24+
curl -fsSL https://get.caprover.com -o caprover-install.sh
2625
sudo bash caprover-install.sh --check
2726
sudo bash caprover-install.sh
2827
```

‎content/es-ES/docs-next/get-started.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Ejecuta estos comandos en el servidor:
2121

2222
```bash
2323
sudo apt update && sudo apt install -y curl
24-
curl -fsSLo caprover-install.sh \
25-
https://raw.githubusercontent.com/caprover/caprover/master/scripts/user/installer/caprover-install.sh
24+
curl -fsSL https://get.caprover.com -o caprover-install.sh
2625
sudo bash caprover-install.sh --check
2726
sudo bash caprover-install.sh
2827
```

‎content/zh-CN/docs-next/get-started.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ slug: /get-started
2121

2222
```bash
2323
sudo apt update && sudo apt install -y curl
24-
curl -fsSLo caprover-install.sh \
25-
https://raw.githubusercontent.com/caprover/caprover/master/scripts/user/installer/caprover-install.sh
24+
curl -fsSL https://get.caprover.com -o caprover-install.sh
2625
sudo bash caprover-install.sh --check
2726
sudo bash caprover-install.sh
2827
```

‎scripts/smoke-combined-site.mjs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ try {
144144
assert(startHtml.includes("caprover-install.sh") &&
145145
startHtml.includes("/docs/installation/manual"),
146146
"Getting Started must use the installer and link Manual Setup");
147+
assert(startHtml.includes("https://get.caprover.com"),
148+
`${locale.code} Getting Started must use the short installer URL`);
149+
assert(!startHtml.includes("raw.githubusercontent.com/caprover/caprover/master/scripts/user/installer/caprover-install.sh"),
150+
`${locale.code} Getting Started must not use the raw GitHub installer URL`);
147151
const oldPage = await fetch(origin + locale.pathPrefix +
148152
"/docs-next/installation/digitalocean");
149153
assert.equal(oldPage.status, 200);

0 commit comments

Comments
 (0)