generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Docs : guide deploy-on-clever #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dylanflandpro
wants to merge
6
commits into
main
Choose a base branch
from
docs/deploy-on-clever
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8baad66
docs(deploy-on-clever): add the content and guide images
dylanflandpro fbbee83
docs(deploy-on-clever): improvements
dylanflandpro a5ad48a
docs(deploy-on-clever): fix duplicate alt text
dylanflandpro 0729cbd
docs(deploy-on-clever): feedback
dylanflandpro e7b3a43
docs(deploy-on-clever): placeholder for app id
dylanflandpro 04f8725
feedbacks
dylanflandpro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| --- | ||
| title: Deploy on Clever Cloud | ||
| --- | ||
|
|
||
| import { Steps} from "@astrojs/starlight/components"; | ||
|
|
||
|
|
||
| This guide explains how to deploy your start-ui-v3 project to Clever Cloud using the Clever Tools CLI. | ||
|
|
||
| <Steps> | ||
| 1. Create a new Clever Cloud application | ||
|
|
||
| - 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. | ||
|
|
||
| - Click on "Create..." and select "an application". | ||
|
|
||
|  | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| - Select "Create a brand new app" | ||
| - Select "NodeJS & Bun" as the template. | ||
|
|
||
|  | ||
|
|
||
| - Choose the recommended machine for your project, but you can edit it later. | ||
| - Give a name to your app (description is optional). | ||
|
|
||
| 2. Configure environment variables | ||
|
|
||
| - In the left sidebar, open your project and click Environment Variables. | ||
| <div style={{ display: "flex", gap: "16px", alignItems: "center" }}> | ||
| <div> | ||
| <img src="/src/assets/guides/deploy-on-clever/deploy-on-clever-3-1.png" /> | ||
| </div> | ||
| <div> | ||
| <img src="/src/assets/guides/deploy-on-clever/deploy-on-clever-3-2.png" /> | ||
| </div> | ||
| </div> | ||
|
|
||
|
|
||
| - At the top right, select the Expert tab. | ||
|  | ||
| - Paste the environment variable template provided below. | ||
| - Replace all variables as needed to match your project (including your domain) | ||
| - Once done, switch back to the Simple view to see your variables listed. | ||
| ``` | ||
| # Clever Cloud variables | ||
| CC_CACHE_DEPENDENCIES="false" | ||
| CC_CUSTOM_BUILD_TOOL="pnpm install && pnpm build" | ||
| CC_NODE_BUILD_TOOL="custom" | ||
| CC_NODE_DEV_DEPENDENCIES="install" | ||
| CC_PRE_BUILD_HOOK="npm install -g pnpm" | ||
| CC_RUN_COMMAND="pnpm start || (npm install -g pnpm && pnpm start)" | ||
|
|
||
| # Start-UI required variables | ||
| AUTH_SECRET="REPLACE ME" | ||
| AUTH_SESSION_EXPIRATION_IN_SECONDS="2592000" | ||
| AUTH_SESSION_UPDATE_AGE_IN_SECONDS="86400" | ||
| DATABASE_URL="REPLACE_ME" | ||
| EMAIL_FROM="Start UI <noreply@example.com>" | ||
| EMAIL_SERVER="smtp://your-smtp-server" | ||
| NODE_ENV="production" | ||
| GITHUB_CLIENT_ID="REPLACE ME" #optional if NODE_ENV != production | ||
| GITHUB_CLIENT_SECRET="REPLACE ME" #optional if NODE_ENV != production | ||
| VITE_BASE_URL="REPLACE ME" | ||
|
|
||
| # Optional | ||
| VITE_ENV_NAME="PROD-STAGING-YOUR_ENV" | ||
| VITE_PORT="3000" | ||
|
|
||
| VITE_ENV_EMOJI="🚧" | ||
| VITE_ENV_COLOR="gold" | ||
| VITE_IS_DEMO="false" | ||
| ``` | ||
|
|
||
| 3. Deploy your app: | ||
|
|
||
| - Open a terminal in your project | ||
| ```bash | ||
| npm install -g clever-tools | ||
| clever login | ||
| clever link app_YOUR_ID_APP | ||
| clever deploy | ||
| ``` | ||
| </Steps> | ||
|
|
||
| 🎉 Once the deployment command completes successfully, your app will be live on Clever Cloud ! | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.