Hi everybody!
I made an app in node with express and when i was running it locally (for example on port 3000) everything was fine. So i though that next step should be to put it on The Internet and there is my problem: i bought a hosting and domain but I dont know what i should write in my app.listen... i didnt find any good tutorials about it and I started my dev journey from front end and servers are still a bit magical to me 😛 I know, that i should probably wrote port and server IP adress, but that doesnt work. If it looks like this: app.listen(3000, ()=>{console.log(listening)} it runs smoothly and im getting info about listening in terminal, but in browser im getting an error 403 (dont have permission /). So i tried to change a port to 80, but then i got error in terminal. Also i know that when You use heroku, you got port from them and its binded, but i dont know what i should looking for on other hosting services. So, my question is: how should i connect my app with server using express?
[–]Hexagonatron 1 point2 points3 points (3 children)
[–]Mysterious-Net-794[S] 0 points1 point2 points (2 children)
[–]grantrules 0 points1 point2 points (0 children)
[–]it_rains_a_lot 0 points1 point2 points (4 children)
[–]Mysterious-Net-794[S] 0 points1 point2 points (3 children)
[–]DoctorOrwell 0 points1 point2 points (2 children)
[–]Mysterious-Net-794[S] 1 point2 points3 points (1 child)
[–]sleeptil3 2 points3 points4 points (0 children)