I am trying to deploy an app made in Hapi.js to AWS EC2 but I am unable to find any help online.
The app works perfect on localhost (I'm using Postman) but after deploying, I can't get a response to the requests even after I can see the server running in SSH/PuTTY.
Any help will be highly appreciated.
Found the solution. I had placed my routes in a separate file and had it registered in server.js.
For some reason I cannot comprehend, Hapi could not find the routes after I deployed the, while it worked perfectly on localhost.
Just moved all the routes in server.js, and it started working.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.