mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-22 23:38:58 +00:00
@@ -1,7 +1,17 @@
|
|||||||
# Coolify Configuration
|
# Coolify Configuration
|
||||||
|
|
||||||
## Server build (NodeJS)
|
## Server build (NodeJS) all apps
|
||||||
- Set `Build Pack` to `nixpacks`.
|
- Set `Build Pack` to `nixpacks`.
|
||||||
- Set the start command to `cd apps/<app-name> && npm run start`.
|
- 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).
|
- `npm` could be different depending on the package manager you are using (`Nixpacks` decides based on the lock file).
|
||||||
- That's all.
|
- Set the 'Ports Exposes' to `3000,3001`.
|
||||||
|
- Set the 'Ports Mapping' to `3000:3000,3001:3001`.
|
||||||
|
- That's all.
|
||||||
|
|
||||||
|
## 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`,
|
||||||
|
- Set the start command to `npm run start --filter=web`.
|
||||||
|
- `npm` could be different depending on the package manager you are using (`Nixpacks` decides based on the lock file).
|
||||||
|
- That's all.
|
||||||
|
|||||||
Reference in New Issue
Block a user