Phusion Passenger and Rails app using NVM Could not find a JavaScript runtime

后端 未结 2 1284
Happy的楠姐
Happy的楠姐 2021-02-08 16:37

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

2条回答
  •  爱一瞬间的悲伤
    2021-02-08 16:54

    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.

提交回复
热议问题