Message from JavaScript discussions

July 2018

β€” Some base animation timeline/sequence parser.. ready🀀

Message permanent page


I have really noob question my local express server runs on localhost:4100 so i use that adress to make http requests. but for deploying it on heroku i used port number from environment variable using process.env.PORT. now i cant make any requests to localhost:4100 rom my client. i am serving index.html of my client from express so how can i make requests to my express server now?😟

β€” Searched on stack/google for hours couldnt find anything.

β€” Do u want to make requests to the local one

β€” Or on heroku

β€” Port=process.env.port||4100

β€” Don know if its two slashes or one .. try that

β€” What is heroku?

β€” On heroku

β€” I am serving my angulars prod builds index.html with deployed express server only but when i wrote code on local machine i made all my http requests to locally running express servers

Message permanent page

β€” What is heroku??

β€” Will have to use aws or digitial ocean for what i wanna achieve i guess