Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix npx nx run start (twenty:server:worker was not triggered) #8384

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

guillim
Copy link
Contributor

@guillim guillim commented Nov 7, 2024

twenty:server:worker was not triggered in npx nx run start

@guillim guillim self-assigned this Nov 7, 2024
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Modified the start script in package.json to properly sequence the startup of server components using concurrently, ensuring the worker process initializes after the main server is ready.

  • Added concurrent execution of server/front-end and worker processes in package.json
  • Implemented port 3000 availability check before worker startup
  • Fixed missing twenty:server:worker trigger in npx nx run start command

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -350,7 +350,7 @@
"version": "0.2.1",
"nx": {},
"scripts": {
"start": "npx nx run-many -t start worker -p twenty-server twenty-front"
"start": "npx concurrently --kill-others 'npx nx run-many -t start -p twenty-server twenty-front' 'npx wait-on tcp:3000 && npx nx run twenty-server:worker'"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider using nx's built-in dependency graph instead of wait-on for more reliable service orchestration

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not work since both command rely on one the same build nx target dependency

@charlesBochet charlesBochet merged commit 2ab4aa1 into main Nov 7, 2024
19 checks passed
@charlesBochet charlesBochet deleted the start-fix branch November 7, 2024 14:57
Copy link

github-actions bot commented Nov 7, 2024

Thanks @guillim for your contribution!
This marks your 3rd PR on the repo. You're top 11% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants