PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, July 15, 2022

[FIXED] How to Publish a Web API net core 3.0 in multiple servers

 July 15, 2022     asp.net-core, asp.net-web-api, c#, web-deployment, window-server     No comments   

Issue

I have a web api with .net core 3.0 and I want to published in 10 servers (with windows sever) at the same time, which tool can I use to do that ? Have you ever do a similar task?


Solution

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



Answered By - Athanasios Kataras
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing