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

www/ajax/discoverCameras.php: set NODE_PATH for js tool cmd #665

Merged

Conversation

andrey-utkin
Copy link
Contributor

In bluecherry-node-onvif package, we bundle the dependencies necessary to avoid relying on packaging of all of them the Debian way.

The command "node .../discovery_json/node-onvif.js" doesn't work as it doesn't look for node_modules where we put them,
/usr/share/nodejs/onvif/node_modules .

This change passes NODE_PATH env var to node interpreter command, which is handled as expected by PHP's popen().

In bluecherry-node-onvif package, we bundle the dependencies necessary
to avoid relying on packaging of all of them the Debian way.

The command "node .../discovery_json/node-onvif.js" doesn't work as it
doesn't look for node_modules where we put them,
/usr/share/nodejs/onvif/node_modules .

This change passes NODE_PATH env var to `node` interpreter command,
which is handled as expected by PHP's popen().
@andrey-utkin andrey-utkin merged commit 4cb8edb into bluecherrydvr:master Feb 29, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants