I set up a node.js application and chose node version 16. Then I also created an application with Application manager.
Then I went to the url mentioned in the app.
At that point, the default app.js file served the page and said "It works!" but it gave node version 10.
My server admin gave me the same issue in Python. I had to write a version switcher just to overcome that.
I am trying that same approach with nodejs but it's not working. I am trying to set my startup file to be startup.js, then in there, use exec to run my app.js with the correct version of node, but it's not working for some reason.
Is there an easiest way to get my app to run with node 16 besides asking the administrator to fix it? He won't. Where can I tell passenger to "use node 16"?
Then I went to the url mentioned in the app.
At that point, the default app.js file served the page and said "It works!" but it gave node version 10.
My server admin gave me the same issue in Python. I had to write a version switcher just to overcome that.
I am trying that same approach with nodejs but it's not working. I am trying to set my startup file to be startup.js, then in there, use exec to run my app.js with the correct version of node, but it's not working for some reason.
Is there an easiest way to get my app to run with node 16 besides asking the administrator to fix it? He won't. Where can I tell passenger to "use node 16"?
Last edited by a moderator: