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:
@ -347,7 +347,7 @@
|
|||||||
"version": "0.2.1",
|
"version": "0.2.1",
|
||||||
"nx": {},
|
"nx": {},
|
||||||
"scripts": {
|
"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": {
|
"workspaces": {
|
||||||
"packages": [
|
"packages": [
|
||||||
|
|||||||
@ -225,13 +225,14 @@ Setup your database with the following command:
|
|||||||
npx nx database:reset twenty-server
|
npx nx database:reset twenty-server
|
||||||
```
|
```
|
||||||
|
|
||||||
Start the server and the frontend:
|
Start the server, the worker and the frontend services:
|
||||||
```bash
|
```bash
|
||||||
npx nx start twenty-server
|
npx nx start twenty-server
|
||||||
|
npx nx worker twenty-server
|
||||||
npx nx start twenty-front
|
npx nx start twenty-front
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you can start both applications at once:
|
Alternatively, you can start all services at once:
|
||||||
```bash
|
```bash
|
||||||
npx nx start
|
npx nx start
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user