Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions turbo-nextjs/README.md
Original file line number Diff line number Diff line change
@@ -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`,
Expand Down