Deploying Node.js to Azure with restify
In following the generally-excellent Azure documentation, my NodeJS app would deploy from GitHub, build, and be available, however, it would not respond to hitting REST endpoints.
Checking the Azure logs showed restify listening to http://undefined:undefined
which to me meant it was listening to nothing. It should get the port from the environment, so it shouldn't be necessary to explicity set a PORT value in Application Settings, however, this fixes it. Once the port is set, you should then see a similar message to what you see locally: restify listening to http://[::]:3978
.