From the course: Node.js for C# Developers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Deploying our web app to Azure

Deploying our web app to Azure

From the course: Node.js for C# Developers

Start my 1-month free trial

Deploying our web app to Azure

- The first thing I need to set up my continuous deployment pipeline is actually set up a web app in Azure. So in the portal I'm going to go ahead and create iamsep no js and I'm going to go ahead and create a new resource group for that and I'll use my pay as you go subscription. I'll switch the OS to Linux and on the runtime stack let's go down and let's chose node A.11 which is close to our 8.12. I'll go ahead and create that. Now that I've done that I can go back to my code and make a few changes. Before we add a start up script to our application, let's go back to userrouter.js in the routers folder, and let's go ahead and uncomment these lines that we commented earlier. If you've already done this, don't worry about that step. One final code change we need to make is let's go to server.js and on line seven we've set our port at 3000 that's actually not going to work. We need to actually set this to process.env port or 3000. That way if we actually are given a port by our…

Contents