Table of Contents

Handling too many code changes

Handling too many code changes

Steps

Important

PLEASE DO NOT SHARE WITH CUSTOMERS! 

PLEASE DO NOT SHARE WITH CUSTOMERS! 

 

These are the steps on how to do it for your staging -> live (this is just our current example).

Clone stage repository

Navigate to the newly cloned repo (where you have the git folder)

Set a remote branch up on your local repo

3.a This means that you now have 1 branch for staging and 1 live.git remote

3.b Do the following command in your local git repo:

3.c git remote add {your choice of name for the remote branch, I call mine live} {git url of live}

E.G. git remote add live https://scm.umbraco.io/euwest01/[your project].git

 

3.d git remote -v

3.e git fetch live (live is what I called my remote branch)

3.f git status ( you want to ensure that the local repo is up to date)

3.g git push live (you are now pushing the changes from your local staging -> the projects live repo)Wait for git to do its thing. Once its done proceed to the next step

 

If this doesn't go through, you might have to run an extra command, which pulls from the master branch of the live environment. 

3.h git pull live master (live is what I called my remote branch)

4. go to kudu and find the data folder and do a echo > deploy on live env (https://our.umbraco.com/Documentation/Umbraco-Cloud/Set-Up/Power-Tools/Manual-extractions/)

In V8 its here:

5. Restart live environment 

Because we going around the normal deployment flow, means we are also going around the extraction flow that comes with the deployment on cloud.

6. Once you got a complete marker (deploy-complete), perform the last step.

7. Deploy from staging to live so everything is synced up.