Skip to content

Commit 04f8725

Browse files
committed
feedbacks
1 parent e7b3a43 commit 04f8725

File tree

6 files changed

+44
-36
lines changed

6 files changed

+44
-36
lines changed
-386 KB
Loading
13.3 KB
Loading
19.5 KB
Loading
25.2 KB
Loading
-185 KB
Binary file not shown.

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

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

5-
import { Steps } from "@astrojs/starlight/components";
5+
import { Steps} from "@astrojs/starlight/components";
66

7-
## Deploy on clever cloud
87

98
This guide explains how to deploy your start-ui-v3 project to Clever Cloud using the Clever Tools CLI.
109

@@ -26,44 +25,53 @@ This guide explains how to deploy your start-ui-v3 project to Clever Cloud using
2625
- Choose the recommended machine for your project, but you can edit it later.
2726
- Give a name to your app (description is optional).
2827

29-
2. Configure environment variables *Replace all variables as needed to match your project (including your domain)*
28+
2. Configure environment variables
3029

3130
- In the left sidebar, open your project and click Environment Variables.
31+
<div style={{ display: "flex", gap: "16px", alignItems: "center" }}>
32+
<div>
33+
<img src="/src/assets/guides/deploy-on-clever/deploy-on-clever-3-1.png" />
34+
</div>
35+
<div>
36+
<img src="/src/assets/guides/deploy-on-clever/deploy-on-clever-3-2.png" />
37+
</div>
38+
</div>
39+
40+
3241
- At the top right, select the Expert tab.
42+
![deploy-on-clever-3-3](@/assets/guides/deploy-on-clever/deploy-on-clever-3-3.png)
3343
- Paste the environment variable template provided below.
44+
- Replace all variables as needed to match your project (including your domain)
3445
- Once done, switch back to the Simple view to see your variables listed.
35-
36-
![deploy-on-clever-3](@/assets/guides/deploy-on-clever/deploy-on-clever-3.png)
37-
38-
```
39-
# Clever Cloud variables
40-
CC_CACHE_DEPENDENCIES="false"
41-
CC_CUSTOM_BUILD_TOOL="pnpm install && pnpm build"
42-
CC_NODE_BUILD_TOOL="custom"
43-
CC_NODE_DEV_DEPENDENCIES="install"
44-
CC_PRE_BUILD_HOOK="npm install -g pnpm"
45-
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"
51-
DATABASE_URL="REPLACE_ME"
52-
EMAIL_FROM="Start UI <noreply@example.com>"
53-
EMAIL_SERVER="smtp://your-smtp-server"
54-
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
57-
VITE_BASE_URL="REPLACE ME"
58-
59-
# Optional
60-
VITE_ENV_NAME="PROD-STAGING-YOUR_ENV"
61-
VITE_PORT="3000"
62-
63-
VITE_ENV_EMOJI="🚧"
64-
VITE_ENV_COLOR="gold"
65-
VITE_IS_DEMO="false"
66-
```
46+
```
47+
# Clever Cloud variables
48+
CC_CACHE_DEPENDENCIES="false"
49+
CC_CUSTOM_BUILD_TOOL="pnpm install && pnpm build"
50+
CC_NODE_BUILD_TOOL="custom"
51+
CC_NODE_DEV_DEPENDENCIES="install"
52+
CC_PRE_BUILD_HOOK="npm install -g pnpm"
53+
CC_RUN_COMMAND="pnpm start || (npm install -g pnpm && pnpm start)"
54+
55+
# Start-UI required variables
56+
AUTH_SECRET="REPLACE ME"
57+
AUTH_SESSION_EXPIRATION_IN_SECONDS="2592000"
58+
AUTH_SESSION_UPDATE_AGE_IN_SECONDS="86400"
59+
DATABASE_URL="REPLACE_ME"
60+
EMAIL_FROM="Start UI <noreply@example.com>"
61+
EMAIL_SERVER="smtp://your-smtp-server"
62+
NODE_ENV="production"
63+
GITHUB_CLIENT_ID="REPLACE ME" #optional if NODE_ENV != production
64+
GITHUB_CLIENT_SECRET="REPLACE ME" #optional if NODE_ENV != production
65+
VITE_BASE_URL="REPLACE ME"
66+
67+
# Optional
68+
VITE_ENV_NAME="PROD-STAGING-YOUR_ENV"
69+
VITE_PORT="3000"
70+
71+
VITE_ENV_EMOJI="🚧"
72+
VITE_ENV_COLOR="gold"
73+
VITE_IS_DEMO="false"
74+
```
6775

6876
3. Deploy your app:
6977

0 commit comments

Comments
 (0)