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

Add support for cwd? #47

Open
joshribakoff opened this issue Jan 25, 2018 · 0 comments
Open

Add support for cwd? #47

joshribakoff opened this issue Jan 25, 2018 · 0 comments

Comments

@joshribakoff
Copy link

A nice feature would be to allow using this together w/ other popular deployment tools such as capistrano. There is a problem with node-cluster itself with cwd, documented here http://clarkdave.net/2013/02/node-js-and-cluster-cwd-dirname-shenanigans/

A nice feature would be to solve for that here in recluster. Apparently doing this when new workers are spawned would solve the issue.

// http://clarkdave.net/2013/02/node-js-and-cluster-cwd-dirname-shenanigans/
    if (__dirname !== process.cwd()) {
        process.chdir(__dirname);
    }

Also see #8

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

No branches or pull requests

1 participant