From adc5396a2d8588cd9f9fdb054c7f545cb08411d1 Mon Sep 17 00:00:00 2001 From: drago1520 <141066422+drago1520@users.noreply.github.com> Date: Tue, 14 Apr 2026 01:03:24 +0300 Subject: [PATCH] Enhance README with deployment and build details Updated README to clarify deployment instructions for specific apps and server build configurations. --- turbo-nextjs/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/turbo-nextjs/README.md b/turbo-nextjs/README.md index 3a1d8a20..93b36f3f 100644 --- a/turbo-nextjs/README.md +++ b/turbo-nextjs/README.md @@ -1,13 +1,18 @@ # Coolify Configuration -## Server build (NodeJS) all apps +## Deploy a specific app +A monorepo can have multiple apps, but we deploy each app in a separate Coolify application. +1. Set `NIXPACKS_TURBO_APP_NAME` environment variable to your app's name (package.json.name in the app directory/) +2. Expose the needed port(s) for your application. + +### Server build (NodeJS) all apps - Set `Build Pack` to `nixpacks`. - Set the start command to `npm run start`. - `npm` could be different depending on the package manager you are using (`Nixpacks` decides based on the lock file). - Set the 'Ports Exposes' to `3000,3001`. - That's all. -## Server build (NodeJS) specific app +### Server build (NodeJS) specific app Configuration to use the `--filter` option with Turbo for launching specific applications. Ensures that only the targeted application is started, enhancing resource efficiency and simplifying the startup process (every app can be created as a separate Coolify Application). - Set `Build Pack` to `nixpacks`. - Set the build command to `npm run build --filter=web`,