-
Notifications
You must be signed in to change notification settings - Fork 1.1k
-
Hi,
I'm trying to run a lb4 app on a CloudLinux web hosting.
I'm following the guide https://loopback.io/doc/en/lb4/Getting-started.html to create a simple lb4 app.
The hosting service uses DirectAdmin on CloudLinux with nodejs-selector (Phusion Passenger).
When I try to access to app the server response that it could not spawn the app.
Reading https://www.phusionpassenger.com/library/indepth/nodejs/reverse_port_binding.html it looks like for Passenger to spawn it it needs to invoke http.Server.listen() once and only once, and make it pass 'passenger' as argument. Also no port nr should be set.
As I understand lb4 uses loopback/rest which will call http.Server.listen(). How can I bypass it so it calls 'http.Server..listen('passenger')'?
Anyone who has an idea on how to solve this?
Beta Was this translation helpful? Give feedback.