Wikimedia

Tracker: Add --no-pull option to deployment script

Knowledge expectations

Student is expected to be familiar with Bash).

Problem

In Tracker, support/deploy script (in Bash) takes care about deploying Tracker to the production server. Usually, the script invokes git pull --no-ff to pull changes from the git repository to the server and then proceeds with deployment (upgrades the dependencies and upgrades the database schema).

Sometimes it is necessary to skip pulling, for instance if you made some changes directly on the server and pull will fail because uncommited changes are present in the working directory and the script should allow users to skip pulling by passing something like --no-pull option to the deployment script.

Please submit your work into Gerrit. If you want to learn how to use Gerrit first, you can claim this task.

Materials

Task tags

  • bash

Students who completed this task

mogmog123

Task type

  • code Code
close

2018