0

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/.

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.