Is it possible to run multiple SPFx local workbenches for multiple user accounts in a single Azure VM?

Hermelyn Alvarado 0 Reputation points
2024-03-11T11:23:48.5066667+00:00

Is it possible to serve multiple local workbenches for a single solution in one VM with multiple user accounts?

We are working on an SPFx development solution using SharePoint 2019, using one VM with multiple user accounts. We need to simultaneously run two instances of gulp serve of the same SPFx solution for the user accounts.

However, when we run the same configuration of serve.json in one user, it returns warning message saying 'ports are in use', since the other user uses the same configuration.

How do we simultaneously serve multiple instances? How to configure additional ports?

We are using the following versions:

SharePoint 2019

@microsoft/generator-sharepoint@1.10.0

gulp-cli@2.3.0

yo@3.1.1

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,298 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,810 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,900 questions
0 comments No comments
{count} votes