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

Doc on Clustering not clear #2101

Open
david-soyez opened this issue Oct 22, 2020 · 0 comments
Open

Doc on Clustering not clear #2101

david-soyez opened this issue Oct 22, 2020 · 0 comments

Comments

@david-soyez
Copy link

@david-soyez david-soyez commented Oct 22, 2020

Hi I'm following the doc to make a cluster with the app but the doc doesn't match with what's in the default app.js file
Since there is a condition that either fork or create the app, how can you export the last line module.exports = app for the forks ?

Do you have any example ?

Link to the doc: https://docs.feathersjs.com/cookbook/general/scaling.html#horizontal-scaling
Link to a typical cluster with express: https://gist.github.com/shivkumarganesh/6052143

And Feathers expects module.exports = app as the last line which doesn't exist during a fork if condition.

Thanks.

@david-soyez david-soyez changed the title Clustering doc not clear Doc on Clustering not clear Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.