Omar Castellanos
Omar Castellanos

Reputation: 63

How to Publish a Web API .NET Core 3.0 app to multiple servers

I have a Web API with .NET core 3.0 and I want to publish it to 10 servers (with Windows server) at the same time. Which tool can I use to do that?

Upvotes: 3

Views: 1335

Answers (1)

Athanasios Kataras
Athanasios Kataras

Reputation: 26450

This question has multiple answers, I will try to explain the concepts and then the decision is yours.

The publish command

dotnet publish - IIS - You can use this to create the deployment package, that is the folder that needs to be put on IIS (if that's your deployment server)

dotnet publish - NGinx - Another guide on how to deploy on linux server.

You can use the above guides to do the manual copy. You can create a bash or powershell script to copy on the target folders simultaneously.

Using a CI/CD pipeline

If you are using azure Devops, you can create a build and release pipeline. Check the guide here

Check another guide here on Azure DevOps

There are other tools available for CD, like Jenkins, GitLab (the list goes on).

Upvotes: 3

Related Questions