cluster mode for gatsby serve - Something is already running at port 9000
Opened this issue · 0 comments
htmlObserver commented
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
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
- Creating a new PM2 app with 'cluster' mode for the 'gatsby serve' command.
- 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