Nexus from A to Z, from your first project to a site delivered by your agents
Your progress
0 lesson completed out of 48

A lesson is completed when you tick it, when you watch its video to the end or when you score 80% on its quiz. The certificate is issued online after the final assessment, from a score of 32 out of 40.

Your progress is saved in this browser. Log in to your client area to pick it up on your other devices.

Video transcript

Lesson 37, module 10: From preview to production Branches, staging and going live Claire wants to see the cuvées page online. Malik has pushed. Is it live?

Branch, push, staging, acceptance testing, merge, production. [Diagram: From branch to production] 1. Branch 2. Push 3. Staging 4. Acceptance testing 5. Merge 6. Production Pushing isn't deploying. Production only goes out when a person asks for it. Pushing isn't deploying. One branch per task Never force push or rewrite history "protected branch": you need a branch Staging goes out when the person wants to see the result online. Request: The task's branch has been pushed. Deploy staging with the repository's recipe, then recheck the staging address and tell me the deployed commit. Response: The review passes, the launch goes to the staging target, the output shows in the Terminal. The log keeps the commit and "by an agent". The rechecked address responds. Before production, five questions. Only one is yours: did you ask for it? [Diagram: The review before production] 1. Did a person ask for this release? 2. Is the working tree clean and everything pushed? 3. Is the code merged into the target's branch? 4. Is continuous integration not red? 5. Does the company policy leave this action open? Yes to all: The launch goes out, the log keeps the commit, and the address is rechecked afterwards. The log says what's live. A fix starts from there. A target's first successful launch The commit and the previous commit A rollback replays a launch The more an action touches production, the more it needs a person. [Diagram: Delivery actions] Vertically, risk; horizontally, frequency. Releasing a redesign Rollback Staging a task Preferred: Urgent fix in production The more an action touches production, the more it needs a person and a trace. In the exercise, you take the cuvées page from branch to production. Your turn: The cuvées page, from branch to production The written course, the corrected exercise and the quiz are below the video.

Lesson 37 of 48 · module 10, from preview to production

Branches, staging and release to production

Every task has its own branch; pushing the branch puts nothing live. Staging is deployed by the repository’s recipe, production only at a person’s request, after a strict check. You learn to push, deploy, read the deployment log, start a hotfix from the live commit, and roll back.

  • 21 min of reading
  • 1 min 58 of video
  • 7 diagrams
  • 4 demandes to copy
  • 3 exemples pratiques
  • 4 exercices answerss
  • 5 questions
  • 1 ressource

By the end of this lesson, you will know how to

  • Work on one branch per task, push and open a merge request without touching main
  • Deploy to staging and then, on request, to production, passing the Nexus check
  • Read the deployment log to find out what is live, and start a fix from that commit

What’s covered

  1. One branch per task
  2. Staging
  3. Production, on request
  4. The log, the fix and the rollback
  5. 3 worked examples, followed from start to finish
  6. Exercise with answers · The cuvées page, from branch to production
  7. 3 practice exercises, from guided to demanding cases
  8. The quiz

Key points

  • One branch per task, commits prefixed [tache <id>], never a force push; “protected branch” means “you need a branch”.
  • Pushing is not deploying: staging is deployed afterwards, using the repository’s recipe.
  • Production is only released at a person’s request, after a strict check: clean tree, everything pushed, merged, continuous integration not red.
  • The deployment log tells you what is live; a fix starts from that commit, not from main.
  • A rollback replays a launch: the code goes back, the database does not.