Stroggo
nodejs express endpoint not returning html on railway but works on local environment
I have no clue how to mark it as solved, I don't get any option for that when right clicking the solution message and then clicking apps. I only see to 'summarize.. ' alternatives
8 replies
nodejs express endpoint not returning html on railway but works on local environment
OK, solved it by reading https://docs.railway.app/guides/fixing-common-errors.
I learned that my service needs to listen to the a environment variable called 'PORT'. I had defined my own port variable names. This means that I don't have to create an environment variable in railway for ports, it's just silently there and assigned by railway.
8 replies