Files
bellsystems-cp/deploy-host.sh

12 lines
226 B
Bash
Executable File

#!/bin/sh
set -e
PROJECT=/home/bellsystems/bellsystems-cp
echo "Deploy started at $(date)"
cd "$PROJECT"
git fetch origin main
git reset --hard origin/main
docker compose up -d --build 2>&1
echo "Deploy finished at $(date)"