Deploy Script

noun

say it: “dee-PLOY skript” /dɪˈplɔɪ skrɪpt/

A script that puts a new version of a website or program live, the same way every time.

What is a deploy script?

A deploy script puts a new version of a site or program live in one command, the same way every time, so nobody forgets a step. A small one copies the files to the server with rsync and then checks them there with ssh.

#!/usr/bin/env bash
set -euo pipefail
rsync -av --delete site/ bookclub:bookclub-site/
ssh bookclub 'ls bookclub-site'

In a sentence

  • “Sam's deploy script copies the site with rsync and checks it with ssh.”
  • “With a deploy script, nobody forgets a step on a Friday afternoon.”

Level: Freelancer · More Unix terms at this level

Updated