koonyue
koonyue

Reputation: 1

Multiple NodeJS instance on Azure App Service

As captioned, can I run multiple NodeJS instances in a single Azure App Services?

e.g.:

wwwroot/node1/xxx
wwwroot/node2/yyy

So, when I access xx.xx/note1/** it will go to node 1 instance.

As I don't want to huge NodeJS project and would like to break into multiple small projects, but using a single App Services.

From the Azure DevOps pipeline seems there is no way to allow me to deploy NodeJS other than the root folder, i.e. wwwroot/.

Upvotes: 0

Views: 1448

Answers (1)

Vova Bilyachat
Vova Bilyachat

Reputation: 19484

You have two options.

First, deploy multiple apps to single web app using Virtual directory. In this case you will have https://yourdomain/app1, https://yourdomain/app2. Go to you App Service -> Configuration -> Path Mappings

enter image description here

When you deploy you will need to specify VirtualApplication for you application this will let to deploy in correct folder.

Second, you can have multiple Web Apps under single App Service Plan in this case it will be more isolated but still will pay same price as in first option. But you will have two different Web Apps, With two different url

Upvotes: 1

Related Questions