Skip to content

Commit ecfe7ce

Browse files
committed
docs(deploy-on-clever): feedback
1 parent a5ad48a commit ecfe7ce

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

src/content/docs/guides/deploy.mdx renamed to src/content/docs/guides/deploy-on-clever-cloud.mdx

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
title: Deploy Guide
2+
title: Deploy on Clever Cloud Guide
33
---
44

55
import WorkInProgress from "@/components/WorkInProgress.astro";
66
import { Steps } from "@astrojs/starlight/components";
77

8-
<WorkInProgress />
98
## Deploy on clever cloud
109

1110
This guide explains how to deploy your start-ui-v3 project to Clever Cloud using the Clever Tools CLI.
@@ -30,32 +29,41 @@ This guide explains how to deploy your start-ui-v3 project to Clever Cloud using
3029

3130
2. Configure environment variables *Replace all variables as needed to match your project (including your domain)*
3231

33-
- Go back to your project on the left bar and click on "Environment Variable".
34-
- Click on the Expert tab at the top right.
35-
- Paste the environment variable template below, then switch back to the Simple view.
32+
- In the left sidebar, open your project and click Environment Variables.
33+
- At the top right, select the Expert tab.
34+
- Paste the environment variable template provided below.
35+
- Once done, switch back to the Simple view to see your variables listed.
3636

3737
![deploy-on-clever-3](@/assets/guides/deploy-on-clever/deploy-on-clever-3.png)
3838

3939
```
40-
AUTH_SECRET="REPLACE ME"
41-
AUTH_SESSION_EXPIRATION_IN_SECONDS="2592000"
42-
AUTH_SESSION_UPDATE_AGE_IN_SECONDS="86400"
40+
# Clever Cloud variables
4341
CC_CACHE_DEPENDENCIES="false"
4442
CC_CUSTOM_BUILD_TOOL="pnpm install && pnpm build"
4543
CC_NODE_BUILD_TOOL="custom"
4644
CC_NODE_DEV_DEPENDENCIES="install"
4745
CC_PRE_BUILD_HOOK="npm install -g pnpm"
4846
CC_RUN_COMMAND="pnpm start || (npm install -g pnpm && pnpm start)"
47+
48+
# Start-UI required variables
49+
AUTH_SECRET="REPLACE ME"
50+
AUTH_SESSION_EXPIRATION_IN_SECONDS="2592000"
51+
AUTH_SESSION_UPDATE_AGE_IN_SECONDS="86400"
4952
DATABASE_URL="REPLACE_ME"
5053
EMAIL_FROM="Start UI <noreply@example.com>"
5154
EMAIL_SERVER="smtp://your-smtp-server"
5255
NODE_ENV="production"
56+
GITHUB_CLIENT_ID="REPLACE ME" #optional if NODE_ENV != production
57+
GITHUB_CLIENT_SECRET="REPLACE ME" #optional if NODE_ENV != production
5358
VITE_BASE_URL="REPLACE ME"
54-
VITE_ENV_COLOR="gold"
55-
VITE_ENV_EMOJI="🚧"
59+
60+
5661
VITE_ENV_NAME="PROD-STAGING-YOUR_ENV"
57-
VITE_IS_DEMO="false"
5862
VITE_PORT="3000"
63+
64+
VITE_ENV_EMOJI="🚧"
65+
VITE_ENV_COLOR="gold"
66+
VITE_IS_DEMO="false"
5967
```
6068

6169
3. Deploy your app:
@@ -64,9 +72,9 @@ This guide explains how to deploy your start-ui-v3 project to Clever Cloud using
6472
```bash
6573
npm install -g clever-tools
6674
clever login
67-
clever link <app_id>
75+
clever link app_2bf02828-1697-49d1-89a9-0399ac5e008c
6876
clever deploy
6977
```
7078
</Steps>
7179

72-
🎉 Your app is now live on Clever Cloud! You can view logs or redeploy anytime using clever logs and clever deploy.
80+
🎉 Once the deployment command completes successfully, your app will be live on Clever Cloud !

0 commit comments

Comments
 (0)