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

cluster mode for gatsby serve - Something is already running at port 9000 #39086

Open
2 tasks done
htmlObserver opened this issue Sep 14, 2024 · 0 comments
Open
2 tasks done
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@htmlObserver
Copy link

Preliminary Checks

Description

I want to stably serve gatsby applications using tools like pm2, but I can't because gatsby throws an error when trying to run subsequent instances on the same port, probably due to some internal limitations.

Reproduction Link

https://githubbox.com/gatsbyjs/gatsby-starter-minimal

Steps to Reproduce

  1. Creating a new PM2 app with 'cluster' mode for the 'gatsby serve' command.
  2. run 'pm2 reload gatsby-app'.

Expected Result

reload aplication in cluster mode works without an issue

Actual Result

Gatsby throws "Something is already running at port ..." error.

Environment

Not connected to envrioment.

Config Flags

No response

@htmlObserver htmlObserver added the type: bug An issue or pull request relating to a bug in Gatsby label Sep 14, 2024
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 14, 2024
@htmlObserver htmlObserver changed the title cluser with gatsby serve - Something is already running at port 9000 cluster mode for gatsby serve - Something is already running at port 9000 Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

1 participant