Try our conversational search powered by Generative AI!

Hotfix deployment

Vote:
 

hi

I am trying to understand to hotfix deployment via Episerver API but couldn't find any complete documentation/instruction

https://world.episerver.com/documentation/developer-guides/digital-experience-platform/deploying/episerver-digital-experience-cloud-deployment-api/deploy-using-code-packages/

Does anyone has any idea how can I reach that via Visual studio directly ?

Also is there any way to deploy to PROD without any downtime?

Thanks

#253063
Apr 12, 2021 10:36
Vote:
 

If you want no down time, you need to be using slot which is the default option, but with longer deployment time. For hotfix, you might want to consider direct deploy instead https://world.episerver.com/blogs/anders-wahlqvist/dates/2021/3/introducing-direct-deploy-a-quicker-way-to-deploy-to-dxp/ 

#253066
Apr 12, 2021 10:59
Vote:
 

Direct deploy is available for the integration environment only.

#253070
Apr 12, 2021 13:31
Vote:
 

Hey there Vahid,

There are 2 ways to do this.

If you want to use Visual Studio, you would have to deploy it to Integration and go through the environments as normal (Integration -> Preproduction -> Production). This isnt necessarily a hotfix, but it will get you to production.

The accepted way for hotfixes is to use the Deployment API and deploy straight to Production, which will go to the slot, and then you can either Complete/Reset the deployment. (To be a bit safer, based on how much time you have, you could also go to PreProduction first)

I have documented the process of the Deployment API in my blog posts here: https://optimizelyvisuals.dev/2020/04/episerver-dxp-deployment-api-powershell/

As for downtime, that wont be an issue unless you're doing database updates through Episerver Nuget package updates. If this is the case, not that itll help you right now, you may want to look into smooth deploy.

Smooth Deploy is currently in Beta, but it will help with exactly what you're talking about here. Updates/Hotfixes without any downtime, even if it has database updates: https://optimizelyvisuals.dev/2021/01/episerver-dxp-deployment-api-smooth/ & https://world.episerver.com/documentation/developer-guides/digital-experience-platform/deploying/deployment-process/smooth-deploy/ 

#253072
Edited, Apr 12, 2021 14:30
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.