From d565996d1cbd8c8e89914306062f6a7629ef1ded Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Mon, 17 Mar 2025 02:44:15 -0600 Subject: [PATCH] docs: add example Turborepo application deployment guide --- .../docs/core/(examples)/turborepo.mdx | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 apps/docs/content/docs/core/(examples)/turborepo.mdx diff --git a/apps/docs/content/docs/core/(examples)/turborepo.mdx b/apps/docs/content/docs/core/(examples)/turborepo.mdx new file mode 100644 index 0000000..4fe9782 --- /dev/null +++ b/apps/docs/content/docs/core/(examples)/turborepo.mdx @@ -0,0 +1,34 @@ +--- +title: Turborepo +description: Deploy a simple Turborepo application. +--- + + +This repository contains an example of turborepo application that is deployed on Dokploy. + + +1. **Use Git Provider in Your Application**: + - Repository: `https://github.com/Dokploy/examples.git` + - Branch: `main` + - Build path: `/turborepo` (Nixpacks) + +2. **Environment Variables**: + - Add environment variables to the env tab. + + ```bash + NIXPACKS_TURBO_APP_NAME="web" + NIXPACKS_BUILD_CMD="turbo run build --filter=web" + NIXPACKS_START_CMD="turbo run start --filter=web" + ``` + +3. **Click on Deploy**: + - Deploy your application by clicking the deploy button. + +3. **Generate a Domain**: + - Click on generate domain button. + - A new domain will be generated for you. + - Set Port `3000` + - You can use this domain to access your application. + + +If you need further assistance, join our [Discord server](https://discord.com/invite/2tBnJ3jDJc).