Skip to content

Commit 0729cbd

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

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

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

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

5-
import WorkInProgress from "@/components/WorkInProgress.astro";
65
import { Steps } from "@astrojs/starlight/components";
76

8-
<WorkInProgress />
97
## Deploy on clever cloud
108

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

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

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.
31+
- In the left sidebar, open your project and click Environment Variables.
32+
- At the top right, select the Expert tab.
33+
- Paste the environment variable template provided below.
34+
- Once done, switch back to the Simple view to see your variables listed.
3635

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

3938
```
40-
AUTH_SECRET="REPLACE ME"
41-
AUTH_SESSION_EXPIRATION_IN_SECONDS="2592000"
42-
AUTH_SESSION_UPDATE_AGE_IN_SECONDS="86400"
39+
# Clever Cloud variables
4340
CC_CACHE_DEPENDENCIES="false"
4441
CC_CUSTOM_BUILD_TOOL="pnpm install && pnpm build"
4542
CC_NODE_BUILD_TOOL="custom"
4643
CC_NODE_DEV_DEPENDENCIES="install"
4744
CC_PRE_BUILD_HOOK="npm install -g pnpm"
4845
CC_RUN_COMMAND="pnpm start || (npm install -g pnpm && pnpm start)"
46+
47+
# Start-UI required variables
48+
AUTH_SECRET="REPLACE ME"
49+
AUTH_SESSION_EXPIRATION_IN_SECONDS="2592000"
50+
AUTH_SESSION_UPDATE_AGE_IN_SECONDS="86400"
4951
DATABASE_URL="REPLACE_ME"
5052
EMAIL_FROM="Start UI <noreply@example.com>"
5153
EMAIL_SERVER="smtp://your-smtp-server"
5254
NODE_ENV="production"
55+
GITHUB_CLIENT_ID="REPLACE ME" #optional if NODE_ENV != production
56+
GITHUB_CLIENT_SECRET="REPLACE ME" #optional if NODE_ENV != production
5357
VITE_BASE_URL="REPLACE ME"
54-
VITE_ENV_COLOR="gold"
55-
VITE_ENV_EMOJI="🚧"
58+
59+
# Optionnal
5660
VITE_ENV_NAME="PROD-STAGING-YOUR_ENV"
57-
VITE_IS_DEMO="false"
5861
VITE_PORT="3000"
62+
63+
VITE_ENV_EMOJI="🚧"
64+
VITE_ENV_COLOR="gold"
65+
VITE_IS_DEMO="false"
5966
```
6067

6168
3. Deploy your app:
@@ -64,9 +71,9 @@ This guide explains how to deploy your start-ui-v3 project to Clever Cloud using
6471
```bash
6572
npm install -g clever-tools
6673
clever login
67-
clever link <app_id>
74+
clever link app_2bf02828-1697-49d1-89a9-0399ac5e008c
6875
clever deploy
6976
```
7077
</Steps>
7178

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

0 commit comments

Comments
 (0)