Skip to content

Commit 8baad66

Browse files
committed
docs(deploy-on-clever): add the content and guide images
1 parent c8ea910 commit 8baad66

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed
396 KB
Loading
126 KB
Loading
185 KB
Loading

src/content/docs/guides/deploy.mdx

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: Deploy Guide
3+
---
4+
5+
import WorkInProgress from "@/components/WorkInProgress.astro";
6+
import { Steps } from "@astrojs/starlight/components";
7+
8+
<WorkInProgress />
9+
## Deploy on clever cloud
10+
11+
<Steps>
12+
1. Create a Clever Cloud app:
13+
14+
- Go to the [Clever Console](https://console.clever-cloud.com/) and select your personal organization or the organization where you want to create your app.
15+
16+
- Click on "Create..." and select "an application".
17+
![deploy-on-clever-1](@/assets/guides/deploy-on-clever/deploy-on-clever-1.png)
18+
19+
20+
- Select "Create a brand new app"
21+
- Select "NodeJS & Bun" as the template.
22+
23+
![deploy-on-clever-1](@/assets/guides/deploy-on-clever/deploy-on-clever-2.png)
24+
25+
- Choose the recommended machine for your project, but you can edit it later.
26+
- Give a name to your app (description is optional).
27+
28+
2. Configure environment variables (_Replace every variables needed to adapt the project as yours (domain included)._):
29+
30+
- Go back to your project on the left bar and click on "Environment Variable".
31+
- Click on "Expert" at the top right.
32+
- Paste the template below and go back to "simple":
33+
34+
![deploy-on-clever-1](@/assets/guides/deploy-on-clever/deploy-on-clever-3.png)
35+
36+
```
37+
AUTH_SECRET="REPLACE ME"
38+
AUTH_SESSION_EXPIRATION_IN_SECONDS="2592000"
39+
AUTH_SESSION_UPDATE_AGE_IN_SECONDS="86400"
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+
DATABASE_URL="REPLACE_ME"
47+
EMAIL_FROM="Start UI <noreply@example.com>"
48+
EMAIL_SERVER="smtp://your-smtp-server"
49+
NODE_ENV="production"
50+
VITE_BASE_URL="REPLACE ME"
51+
VITE_ENV_COLOR="gold"
52+
VITE_ENV_EMOJI="🚧"
53+
VITE_ENV_NAME="PROD-STAGING-YOUR_ENV"
54+
VITE_IS_DEMO="false"
55+
VITE_PORT="3000"
56+
```
57+
58+
3. Deploy your app:
59+
60+
- Open a terminal in your project
61+
- Install the Clever Tools package globally with `npm install -g clever-tools`.
62+
- Log in to Clever Cloud with `clever login` (follow the instructions in the shell).
63+
- Copy the app ID at the top right of your project on the Clever Console and run `clever link {app_id}`.
64+
- Deploy your app with `clever deploy`.
65+
</Steps>

0 commit comments

Comments
 (0)