I have a problem with the node_module-path. Can someone let me know what I'm doing wrong?
exec sudo -u www-data /usr/bin/node /etc/node/app.js
Error: Cannot find module 'connect'
I have this config (/etc/init/applicationserver.conf):
start on started mountall stop on shutdown respawn respawn limit 99 5 script export HOME="/" export NODE_PATH="/usr/lib/node_modules" exec sudo -u www-data /usr/bin/node /etc/node/app.js >> /var/log/applicationserver.log 2>&1 end script post-start script end script
It seems like it can't find the modules installed. I've verified that connect is under /usr/lib/node_modules and if I export NODE_PATH from root or my account it works fine.