Hotfixes

When you have an Umbraco Cloud project with multiple environments, you might run into a situation where you need to push a hotfix to your Live environment but have pending changes elsewhere that are not ready for the Live site.

Let's say you have 2 environments, a Live environment, and a Development environment. You are currently working on building some changes on your local clone of the Development environment, but these changes won't be ready for the Live environment for another few weeks. Now you need to apply a minor change to your Live environment - a hotfix.

Normally you would do this, by making the hotfix locally, pushing it to the Development environment, and then deploying it to the Live environment. In this scenario that's not possible, as you do not want to deploy the other pending changes you are still working on.

Following the workflow of Umbraco Cloud, you should never make changes directly to your Live environment. You should only make changes to the Live environment if that's the only environment you have. Read the Project Overview article to learn more about environments on Umbraco Cloud.

With that said, it is possible to apply selected changes to your Live environment without breaking the workflow of Umbraco Cloud.

There are two approaches you can use:

One way to apply a hotfix to a Live environment on Cloud is to clone down the Development environment and then use Git to push selected changes to the Live environment. The advantage of using this approach is that your Git history is more accurate and you only work with one local repository. It does require some knowledge of how to use Git, using a client can make this a lot easier, and you should only go with this guide if you feel comfortable working with Git.

Read the guide here: Deploy hotfix with Git

Another way to apply a hotfix to a Live environment would be to clone down both your Development and your Live environment to your local machine. Take the changed and/or updated files from the cloned Development environment, copy them into the cloned Live environment, and push them to the Live environment on Cloud. Using this guide will also allow you to test the changes on a cloned version of your Live environment before pushing it to the Cloud.

Read the guide here: Move files manually

Last updated