Skip to content

Commit

Permalink
Start twenty-server:worker when npx nx start (#7820)
Browse files Browse the repository at this point in the history
- start the worker service when launching `npx nx start`
- update documentation
  • Loading branch information
martmull authored Oct 18, 2024
1 parent 5a23d1e commit 9c8eeee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 9c8eeee

Please sign in to comment.