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)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.