12 lines
226 B
Bash
12 lines
226 B
Bash
#!/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)"
|