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 port conflicts #24

Merged
merged 6 commits into from
Feb 28, 2024
Merged

Fix port conflicts #24

merged 6 commits into from
Feb 28, 2024

Conversation

truemiller
Copy link
Collaborator

  • checks if default port is available, otherwise, updates port with an available port for each child process

Copy link
Collaborator

@mohandast52 mohandast52 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +317 to +325
const frontendPortAvailable = await isPortAvailable(
appConfig.ports.prod.next,
);
if (!frontendPortAvailable) {
appConfig.ports.prod.next = await findAvailablePort({
...PORT_RANGE,
excludePorts: [appConfig.ports.prod.operate],
});
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it possible to create a common function as they seem to be repeated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will resolve later today

@truemiller truemiller merged commit ef68bde into main Feb 28, 2024
2 checks passed
@truemiller truemiller deleted the fix-port-conflicts branch April 5, 2024 19:43
0xArdi pushed a commit that referenced this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants