Skip to content

Instantly share code, notes, and snippets.

@timble-one
Last active February 3, 2026 11:04
Show Gist options
  • Select an option

  • Save timble-one/0cf1d8ef20f45662cfc31f5e894e9a8d to your computer and use it in GitHub Desktop.

Select an option

Save timble-one/0cf1d8ef20f45662cfc31f5e894e9a8d to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(git -C "$SCRIPT_DIR" rev-parse --show-superproject-working-tree)"
cd "$REPO_ROOT"
if [ "$(docker compose ps --status running | tail -n +2)" ]; then
git pull --recurse-submodules
make pull-prod
make prod
else
echo "Stack not running, skip the deployment."
fi
# dummy-comment for some dummy-git-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment