Start twenty-server:worker when npx nx start (#7820)

- start the worker service when launching `npx nx start`
- update documentation
This commit is contained in:
martmull
2024-10-18 16:13:12 +02:00
committed by GitHub
parent 5a23d1eea8
commit 9c8eeeea9d
2 changed files with 4 additions and 3 deletions

View File

@ -347,7 +347,7 @@
"version": "0.2.1",
"nx": {},
"scripts": {
"start": "npx nx run-many -t start -p twenty-server twenty-front"
"start": "npx nx run-many -t start worker -p twenty-server twenty-front"
},
"workspaces": {
"packages": [

View File

@ -225,13 +225,14 @@ Setup your database with the following command:
npx nx database:reset twenty-server
```
Start the server and the frontend:
Start the server, the worker and the frontend services:
```bash
npx nx start twenty-server
npx nx worker twenty-server
npx nx start twenty-front
```
Alternatively, you can start both applications at once:
Alternatively, you can start all services at once:
```bash
npx nx start
```