Closed sambs closed 13 years ago
interesting, thanks for the report, I will add some test coverage for this, merge the env instead and see how it goes. I think you are right
Fixed bug preventing consistent envs. Closed by e7ef8b7bb5aeb4e1bb104b875c61f511fd1c3223 [reported by sambarnes]
I'm finding that when my app is restarted, either via the cli or automatically by reload, require.paths is reduced to: [ '/usr/local/lib/node' ] down from: [ '/Users/sam/.npm', '/Users/sam/.node_modules', '/Users/sam/.node_libraries', '/usr/local/lib/node' ] causing "Cannot find module" errors.
I'm guessing this has something to do with process.ENV being replaced with: { CLUSTER_REPLACEMENT_MASTER: '1', CLUSTER_PARENT_PID: '590', __CF_USER_TEXT_ENCODING: '0x1F5:0:0' }