I\'m deploying a rails app using Apache and Phusion Passenger I already deployed apps using this stack but now i\'m using NVM to install node but when I try to load the site sh
I have the same problem and don't have a good solution but I did find I was able to get around my problem by creating a symbolic link like:
ln -sf /home/deploy/.nvm/versions/node/v6.10.1/bin/node /usr/local/bin/node
Doesn't work very well if there are multiple deployments on the same server but I also couldn't find a way to "properly" use NVM with Passenger / Rails.
One other way to do this that doesn't require writing to /usr/local/bin is to use the https://www.phusionpassenger.com/library/config/apache/reference/#passengernodejs PassengerNodeJs directive. This also works if you have other apps on the server using a different version of node.