Configure environments using deployment slots

The concept of Continuous Delivery (CD) and automated deployment process is becoming more and more popular and is an essential step if you want your Sitefinity website to follow best practices. The Staging/Live or Blue/Green concept represents the possibility to deploy applications on the same production resources independently and with unique hosting addresses. This way different roles within your internal team, like QAs, developers and business stakeholder alike can test the newly released version of your website "under the hood" without affecting the current stable live website. The end users will still be seeing the production website version (blue) while the Staging (green) version of the site can be tested and re-deployed as many times as needed depending on the testing and development needs and it will not be visible by the production end users. When the Staging version is approved and confirmed as production ready then the staging and production slots can be swapped thus making the Staging version available on the production URL. 

Set up deployment slots

When you deploy your website to Azure App Services, you can benefit from the out of the box support for deployment slots – a mechanism which helps to achieve the above-mentioned strategy. With deployment slots traffic redirection is seamless, when a swap between slots is executed and no requests are dropped because of swap operations. Such setup is often specific to your organization’s processes and needs. For starting guidance on achieving Staging/Live environments setup using Azure App Service deployment slots, refer to the Microsoft documentation Set up staging environments in Azure App Service.

Automate the deployment

The deployments can further be automated using Azure DevOps or other automation servers that facilitate building, testing, and deploying software reliably. Azure App services allows for deployment from multiple sources including continuous deployment from GitHub, BitBucket and Azure Repos. For more information see Continuous deployment to Azure App Service from the Microsoft documentation.  

Sitefinity Cloud implementation

Sitefinity Cloud leverages the above described mechanisms to deliver fully automated CD process with Staging and Live environments out of the box. For more information about the setup, see Production and Staging environments and Deploy code changes articles from the Sitefinity Cloud documentation.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?